mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
script: make IsPushdataOp non-static
We'll need it for Miniscript
This commit is contained in:
parent
8435d7f11a
commit
31ec6ae92a
2 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue