diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-01-17 05:27:12 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-05-20 10:37:31 +0800 |
commit | bde6a5a676e4de7c5133f61784a3239bb4a28f2e (patch) | |
tree | 6afc2e7edc9d7cacd08b4573a88adf409eb443c6 | |
parent | e422f65aee4b2a817b31bbd37c79d178570579df (diff) | |
download | bitcoin-bde6a5a676e4de7c5133f61784a3239bb4a28f2e.tar.xz |
Bugfix: Include "csv","!segwit" in "rules"
They have been missing since buried deployments were merged
Github-Pull: #17946
Rebased-From: 2abe8cc3b760219cfa434e4c96e9f8d3611d0037
-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 07c2958635..370f02e13b 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); |