From 31ec6ae92a5d9910a26d90a6ff20bab27dee5826 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Sat, 25 Sep 2021 15:21:57 +0200 Subject: script: make IsPushdataOp non-static We'll need it for Miniscript --- src/script/standard.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/script/standard.h') diff --git a/src/script/standard.h b/src/script/standard.h index 75bfe2db38..f0b143c52b 100644 --- a/src/script/standard.h +++ b/src/script/standard.h @@ -162,6 +162,11 @@ bool IsValidDestination(const CTxDestination& dest); /** Get the name of a TxoutType as a string */ std::string GetTxnOutputType(TxoutType t); +constexpr bool IsPushdataOp(opcodetype opcode) +{ + return opcode > OP_FALSE && opcode <= OP_PUSHDATA4; +} + /** * Parse a scriptPubKey and identify script type for standard scripts. If * successful, returns script type and parsed pubkeys or hashes, depending on -- cgit v1.2.3