Skip to content

Commit 31ec6ae

Browse files
committed
script: make IsPushdataOp non-static
We'll need it for Miniscript
1 parent 8435d7f commit 31ec6ae

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/script/standard.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,6 @@ static constexpr bool IsSmallInteger(opcodetype opcode)
9191
return opcode >= OP_1 && opcode <= OP_16;
9292
}
9393

94-
static constexpr bool IsPushdataOp(opcodetype opcode)
95-
{
96-
return opcode > OP_FALSE && opcode <= OP_PUSHDATA4;
97-
}
98-
9994
/** Retrieve a minimally-encoded number in range [min,max] from an (opcode, data) pair,
10095
* whether it's OP_n or through a push. */
10196
static std::optional<int> GetScriptNumber(opcodetype opcode, valtype data, int min, int max)

src/script/standard.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ bool IsValidDestination(const CTxDestination& dest);
162162
/** Get the name of a TxoutType as a string */
163163
std::string GetTxnOutputType(TxoutType t);
164164

165+
constexpr bool IsPushdataOp(opcodetype opcode)
166+
{
167+
return opcode > OP_FALSE && opcode <= OP_PUSHDATA4;
168+
}
169+
165170
/**
166171
* Parse a scriptPubKey and identify script type for standard scripts. If
167172
* successful, returns script type and parsed pubkeys or hashes, depending on

0 commit comments

Comments
 (0)