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

Method ScriptSize

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

Return the size of the script for this expression (faster than ToScript().size()).

Source from the content-addressed store, hash-verified

1557
1558 //! Return the size of the script for this expression (faster than ToScript().size()).
1559 size_t ScriptSize() const { return scriptlen; }
1560
1561 //! Return the maximum number of ops needed to satisfy this script non-malleably.
1562 std::optional<uint32_t> GetOps() const {

Callers 7

CalcScriptLenMethod · 0.45
ParseFunction · 0.45
TestMethod · 0.45
DoCheckFunction · 0.45
TestDescriptorFunction · 0.45
GenNodeFunction · 0.45
TestNodeFunction · 0.45

Calls

no outgoing calls

Tested by 5

TestMethod · 0.36
DoCheckFunction · 0.36
TestDescriptorFunction · 0.36
GenNodeFunction · 0.36
TestNodeFunction · 0.36