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

Method ValidSatisfactions

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

Whether successful non-malleable satisfactions are guaranteed to be valid.

Source from the content-addressed store, hash-verified

1694
1695 //! Whether successful non-malleable satisfactions are guaranteed to be valid.
1696 bool ValidSatisfactions() const { return IsValid() && CheckOpsLimit() && CheckStackSize(); }
1697
1698 //! Whether the apparent policy of this node matches its script semantics. Doesn't guarantee it is a safe script on its own.
1699 bool IsSaneSubexpression() const { return ValidSatisfactions() && IsNonMalleable() && CheckTimeLocksMix() && CheckDuplicateKey(); }

Callers 3

ParseScriptFunction · 0.80
TestSatisfyMethod · 0.80
TestNodeFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestSatisfyMethod · 0.64
TestNodeFunction · 0.64