MCPcopy Create free account
hub / github.com/ElementsProject/elements / CheckMapFlagNames

Function CheckMapFlagNames

src/test/transaction_tests.cpp:88–95  ·  view source on GitHub ↗

Check that all flags in STANDARD_SCRIPT_VERIFY_FLAGS are present in mapFlagNames.

Source from the content-addressed store, hash-verified

86
87// Check that all flags in STANDARD_SCRIPT_VERIFY_FLAGS are present in mapFlagNames.
88bool CheckMapFlagNames()
89{
90 unsigned int standard_flags_missing{STANDARD_SCRIPT_VERIFY_FLAGS};
91 for (const auto& pair : mapFlagNames) {
92 standard_flags_missing &= ~(pair.second);
93 }
94 return standard_flags_missing == 0;
95}
96
97std::string FormatScriptFlags(unsigned int flags)
98{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected