script: make IsPushdataOp non-static
We'll need it for Miniscript
This commit is contained in:
2 files changed
+5
-5
No files matched your search
@@ -91,11 +91,6 @@ static constexpr bool IsSmallInteger(opcodetype opcode)
|
|||||||
return opcode >= OP_1 && opcode <= OP_16;
|
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,
|
/** Retrieve a minimally-encoded number in range [min,max] from an (opcode, data) pair,
|
||||||
* whether it's OP_n or through a push. */
|
* whether it's OP_n or through a push. */
|
||||||
static std::optional<int> GetScriptNumber(opcodetype opcode, valtype data, int min, int max)
|
static std::optional<int> GetScriptNumber(opcodetype opcode, valtype data, int min, int max)
|
||||||
|
|||||||
@@ -162,6 +162,11 @@ bool IsValidDestination(const CTxDestination& dest);
|
|||||||
/** Get the name of a TxoutType as a string */
|
/** Get the name of a TxoutType as a string */
|
||||||
std::string GetTxnOutputType(TxoutType t);
|
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
|
* Parse a scriptPubKey and identify script type for standard scripts. If
|
||||||
* successful, returns script type and parsed pubkeys or hashes, depending on
|
* successful, returns script type and parsed pubkeys or hashes, depending on
|
||||||
|
|||||||
Reference in new issue
Block a user