diff options
author | Antoine Poinsot <darosior@protonmail.com> | 2021-09-25 15:21:57 +0200 |
---|---|---|
committer | Antoine Poinsot <darosior@protonmail.com> | 2022-03-17 14:09:06 +0100 |
commit | 31ec6ae92a5d9910a26d90a6ff20bab27dee5826 (patch) | |
tree | fe9cd1f3d20ebbd28762c7f76531a57ab13755ae /src/script | |
parent | 8435d7f11a89bb3f93306646f62cc2179693e072 (diff) |
script: make IsPushdataOp non-static
We'll need it for Miniscript
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/standard.cpp | 5 | ||||
-rw-r--r-- | src/script/standard.h | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/script/standard.cpp b/src/script/standard.cpp index b77c78769f..e25155d3dd 100644 --- a/src/script/standard.cpp +++ b/src/script/standard.cpp @@ -91,11 +91,6 @@ static constexpr bool IsSmallInteger(opcodetype opcode) return opcode >= OP_1 && opcode <= OP_16; } -static constexpr bool IsPushdataOp(opcodetype opcode) -{ - return opcode > OP_FALSE && opcode <= OP_PUSHDATA4; -} - /** Retrieve a minimally-encoded number in range [min,max] from an (opcode, data) pair, * whether it's OP_n or through a push. */ static std::optional<int> GetScriptNumber(opcodetype opcode, valtype data, int min, int max) 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 |