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

Method IsValidTopLevel

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

Check whether this node is valid as a script on its own.

Source from the content-addressed store, hash-verified

1679
1680 //! Check whether this node is valid as a script on its own.
1681 bool IsValidTopLevel() const { return IsValid() && GetType() << "B"_mst; }
1682
1683 //! Check whether this script can always be satisfied in a non-malleable way.
1684 bool IsNonMalleable() const { return GetType() << "m"_mst; }

Callers 3

DecodeScriptFunction · 0.80
TestMethod · 0.80
TestNodeFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestMethod · 0.64
TestNodeFunction · 0.64