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

Method GetWitnessSize

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

Return the maximum size in bytes of a witness to satisfy this script non-malleably. Note this does * not include the witness script push. */

Source from the content-addressed store, hash-verified

1609 /** Return the maximum size in bytes of a witness to satisfy this script non-malleably. Note this does
1610 * not include the witness script push. */
1611 std::optional<uint32_t> GetWitnessSize() const {
1612 if (!ws.sat.Valid()) return {};
1613 return ws.sat.Value();
1614 }
1615
1616 //! Return the expression type.
1617 Type GetType() const { return typ; }

Callers 4

MaxSatSizeMethod · 0.80
TestSatisfyMethod · 0.80
TestMethod · 0.80
TestNodeFunction · 0.80

Calls 2

ValidMethod · 0.45
ValueMethod · 0.45

Tested by 3

TestSatisfyMethod · 0.64
TestMethod · 0.64
TestNodeFunction · 0.64