Skip to content

Commit 2abe8cc

Browse files
committed
Bugfix: Include "csv","!segwit" in "rules"
They have been missing since buried deployments were merged
1 parent 0328dcd commit 2abe8cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rpc/mining.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,8 @@ static UniValue getblocktemplate(const JSONRPCRequest& request)
576576
result.pushKV("capabilities", aCaps);
577577

578578
UniValue aRules(UniValue::VARR);
579+
aRules.push_back("csv");
580+
if (!fPreSegWit) aRules.push_back("!segwit");
579581
UniValue vbavailable(UniValue::VOBJ);
580582
for (int j = 0; j < (int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j) {
581583
Consensus::DeploymentPos pos = Consensus::DeploymentPos(j);

0 commit comments

Comments
 (0)