diff options
author | Carl Dong <contact@carldong.me> | 2021-09-20 14:02:07 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-12-07 14:48:49 -0500 |
commit | 15f2e33bb3d1ad3bc997f6a84956337f46495091 (patch) | |
tree | f645b983981d41f2da59acd1e6c0f11c3e5a9830 /src/rpc/blockchain.cpp | |
parent | 4da9c076d1cf12728730bb1f7e8906d4e9bfaba5 (diff) | |
download | bitcoin-15f2e33bb3d1ad3bc997f6a84956337f46495091.tar.xz |
validation: VerifyDB only needs Consensus::Params
Previously we were passing in CChainParams, when VerifyDB only needed
the Consensus::Params subset.
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r-- | src/rpc/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index bd11d76866..4af1f206a5 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1364,7 +1364,7 @@ static RPCHelpMan verifychain() CChainState& active_chainstate = chainman.ActiveChainstate(); return CVerifyDB().VerifyDB( - active_chainstate, Params(), active_chainstate.CoinsTip(), check_level, check_depth); + active_chainstate, Params().GetConsensus(), active_chainstate.CoinsTip(), check_level, check_depth); }, }; } |