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

Function gbt_rule_value

src/rpc/mining.cpp:636–643  ·  view source on GitHub ↗

Prefix rule name with ! if not optional, see BIP9

Source from the content-addressed store, hash-verified

634
635// Prefix rule name with ! if not optional, see BIP9
636static std::string gbt_rule_value(const std::string& name, bool gbt_optional_rule)
637{
638 std::string s{name};
639 if (!gbt_optional_rule) {
640 s.insert(s.begin(), '!');
641 }
642 return s;
643}
644
645static RPCMethod getblocktemplate()
646{

Callers 1

getblocktemplateFunction · 0.85

Calls 2

insertMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected