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

Method IsValid

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

Check whether this node is valid at all.

Source from the content-addressed store, hash-verified

1673
1674 //! Check whether this node is valid at all.
1675 bool IsValid() const {
1676 if (GetType() == ""_mst) return false;
1677 return ScriptSize() <= internal::MaxScriptSize(m_script_ctx);
1678 }
1679
1680 //! Check whether this node is valid as a script on its own.
1681 bool IsValidTopLevel() const { return IsValid() && GetType() << "B"_mst; }

Callers 15

ApplyMigrationDataMethod · 0.45
LoadKeyFunction · 0.45
LoadCryptedKeyFunction · 0.45
walletdb.cppFile · 0.45
crypter.cppFile · 0.45
createwalletdescriptorFunction · 0.45
addhdkeyFunction · 0.45
GetPubKeyMethod · 0.45
ToNormalizedStringMethod · 0.45
GetPubKeyMethod · 0.45
ParsePubkeyInnerFunction · 0.45

Calls 1

MaxScriptSizeFunction · 0.85

Tested by 15

BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36
BOOST_AUTO_TEST_CASEFunction · 0.36