aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-09-15 15:59:46 -0400
committerCarl Dong <contact@carldong.me>2021-03-01 17:56:07 -0500
commit63e4c7316a537900f525e221d8042587b443cc3d (patch)
treefd7a4e43848b6126e7860a21dd2f5e877a3cdf46 /src/rpc/blockchain.cpp
parent4bada76237d734c1de38d3bd58689caeefd5e8cb (diff)
downloadbitcoin-63e4c7316a537900f525e221d8042587b443cc3d.tar.xz
validation: Pass in chainstate to ::PruneBlockFilesManual
Diffstat (limited to 'src/rpc/blockchain.cpp')
-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 bb6c7e32ef..568b3d98ac 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -1015,7 +1015,7 @@ static RPCHelpMan pruneblockchain()
height = chainHeight - MIN_BLOCKS_TO_KEEP;
}
- PruneBlockFilesManual(height);
+ PruneBlockFilesManual(::ChainstateActive(), height);
const CBlockIndex* block = ::ChainActive().Tip();
CHECK_NONFATAL(block);
while (block->pprev && (block->pprev->nStatus & BLOCK_HAVE_DATA)) {