script: make IsPushdataOp non-static

We'll need it for Miniscript
This commit is contained in:
Antoine Poinsot
2021-09-25 15:21:57 +02:00
parent 8435d7f11a
commit 31ec6ae92a
2 changed files with 5 additions and 5 deletions

View File

@@ -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)