diff options
| author | Luke Dashjr <[email protected]> | 2020-01-17 05:27:12 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2020-01-17 05:28:48 +0000 |
| commit | 2abe8cc3b760219cfa434e4c96e9f8d3611d0037 (patch) | |
| tree | 6590590444d2d4eb383bb60d4439bce69f8bb145 /src | |
| parent | [Consensus] Bury segwit deployment (diff) | |
| download | discoin-2abe8cc3b760219cfa434e4c96e9f8d3611d0037.tar.xz discoin-2abe8cc3b760219cfa434e4c96e9f8d3611d0037.zip | |
Bugfix: Include "csv","!segwit" in "rules"
They have been missing since buried deployments were merged
Diffstat (limited to 'src')
| -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 13bf611d3..cec01c073 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); |