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

Method GetOps

src/script/miniscript.h:1562–1565  ·  view source on GitHub ↗

Return the maximum number of ops needed to satisfy this script non-malleably.

Source from the content-addressed store, hash-verified

1560
1561 //! Return the maximum number of ops needed to satisfy this script non-malleably.
1562 std::optional<uint32_t> GetOps() const {
1563 if (!ops.sat.Valid()) return {};
1564 return ops.count + ops.sat.Value();
1565 }
1566
1567 //! Return the number of ops in the script (not counting the dynamic ones that depend on execution).
1568 uint32_t GetStaticOps() const { return ops.count; }

Callers 3

TestMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
TestNodeFunction · 0.80

Calls 2

ValidMethod · 0.45
ValueMethod · 0.45

Tested by 3

TestMethod · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
TestNodeFunction · 0.64