Prefix rule name with ! if not optional, see BIP9
| 634 | |
| 635 | // Prefix rule name with ! if not optional, see BIP9 |
| 636 | static 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 | |
| 645 | static RPCMethod getblocktemplate() |
| 646 | { |
no test coverage detected