MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / CheckOpsLimit

Method CheckOpsLimit

src/script/miniscript.h:1571–1575  ·  view source on GitHub ↗

Check the ops limit of this script against the consensus limit.

Source from the content-addressed store, hash-verified

1569
1570 //! Check the ops limit of this script against the consensus limit.
1571 bool CheckOpsLimit() const {
1572 if (IsTapscript(m_script_ctx)) return true;
1573 if (const auto ops = GetOps()) return *ops <= MAX_OPS_PER_SCRIPT;
1574 return true;
1575 }
1576
1577 /** Whether this node is of type B, K or W. (That is, anything but V.) */
1578 bool IsBKW() const {

Callers 2

TestSatisfyMethod · 0.80
TestNodeFunction · 0.80

Calls 1

IsTapscriptFunction · 0.85

Tested by 2

TestSatisfyMethod · 0.64
TestNodeFunction · 0.64