aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/mining.cpp
diff options
context:
space:
mode:
authorAnthony Towns <aj@erisian.com.au>2022-04-15 05:50:53 +1000
committerAnthony Towns <aj@erisian.com.au>2022-05-10 12:09:33 +1000
commit78adef17536edef833a0bfca06b61ce28120e486 (patch)
tree05de2b430baeaea8e2e17e3d5ef04008b55de0d0 /src/rpc/mining.cpp
parentdeffe0df6c36225bada18603b5a840139f030f2c (diff)
downloadbitcoin-78adef17536edef833a0bfca06b61ce28120e486.tar.xz
refactor: use chainman instead of chainParams for DeploymentActive*
Diffstat (limited to 'src/rpc/mining.cpp')
-rw-r--r--src/rpc/mining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp
index c41b1d6cb9..05776e7899 100644
--- a/src/rpc/mining.cpp
+++ b/src/rpc/mining.cpp
@@ -770,7 +770,7 @@ static RPCHelpMan getblocktemplate()
pblock->nNonce = 0;
// NOTE: If at some point we support pre-segwit miners post-segwit-activation, this needs to take segwit support into consideration
- const bool fPreSegWit = !DeploymentActiveAfter(pindexPrev, consensusParams, Consensus::DEPLOYMENT_SEGWIT);
+ const bool fPreSegWit = !DeploymentActiveAfter(pindexPrev, chainman, Consensus::DEPLOYMENT_SEGWIT);
UniValue aCaps(UniValue::VARR); aCaps.push_back("proposal");