aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorMartin Zumsande <mzumsande@gmail.com>2022-10-06 15:51:09 -0400
committerMartin Zumsande <mzumsande@gmail.com>2023-02-16 17:29:34 -0500
commit6360b5302d2675788de5c4a28ea77d823f6d809e (patch)
tree986279d44146b8554b8587b3a55767df1d381279 /src/rpc
parent52ddbd52f980c0e733682401056d8131f1d513c0 (diff)
downloadbitcoin-6360b5302d2675788de5c4a28ea77d823f6d809e.tar.xz
validation: Change return value of VerifyDB to enum type
This does not change behavior. It is in preparation for special handling of the case where VerifyDB doesn't finish for various reasons, but doesn't fail.
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index 8bee066ab8..e2a1efea55 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -1125,7 +1125,7 @@ static RPCHelpMan verifychain()
Chainstate& active_chainstate = chainman.ActiveChainstate();
return CVerifyDB().VerifyDB(
- active_chainstate, chainman.GetParams().GetConsensus(), active_chainstate.CoinsTip(), check_level, check_depth);
+ active_chainstate, chainman.GetParams().GetConsensus(), active_chainstate.CoinsTip(), check_level, check_depth) == VerifyDBResult::SUCCESS;
},
};
}