diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-01-17 05:27:12 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2020-01-17 05:28:48 +0000 |
commit | 2abe8cc3b760219cfa434e4c96e9f8d3611d0037 (patch) | |
tree | 6590590444d2d4eb383bb60d4439bce69f8bb145 /src/rpc/mining.cpp | |
parent | 0328dcdcfcb56dc8918697716d7686be048ad0b3 (diff) |
Bugfix: Include "csv","!segwit" in "rules"
They have been missing since buried deployments were merged
Diffstat (limited to 'src/rpc/mining.cpp')
-rw-r--r-- | src/rpc/mining.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 13bf611d32..cec01c0738 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -576,6 +576,8 @@ static UniValue getblocktemplate(const JSONRPCRequest& request) result.pushKV("capabilities", aCaps); UniValue aRules(UniValue::VARR); + aRules.push_back("csv"); + if (!fPreSegWit) aRules.push_back("!segwit"); UniValue vbavailable(UniValue::VOBJ); for (int j = 0; j < (int)Consensus::MAX_VERSION_BITS_DEPLOYMENTS; ++j) { Consensus::DeploymentPos pos = Consensus::DeploymentPos(j); |