mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge d492dc1cda into merged_master (Bitcoin PR bitcoin/bitcoin#24147)
This commit is contained in:
commit
94e058d3b7
12 changed files with 2419 additions and 30 deletions
|
|
@ -105,11 +105,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue