diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-01-04 14:04:30 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-01-05 15:07:28 +0100 |
commit | fa88cfd3f9896d5b56ea6c111a23f90a79253c18 (patch) | |
tree | 26a4488d3c655f90a298ec31f0bd9c941c7ed384 /src/rpc | |
parent | e31cdb0238f048343eeca9bc9502625f1ca8a0e1 (diff) |
Move functions to BlockManager
Needed for a later commit
Diffstat (limited to 'src/rpc')
-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 0251dafe56..4cd07c9291 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -1564,7 +1564,7 @@ RPCHelpMan getblockchaininfo() obj.pushKV("verificationprogress", GuessVerificationProgress(Params().TxData(), tip)); obj.pushKV("initialblockdownload", active_chainstate.IsInitialBlockDownload()); obj.pushKV("chainwork", tip->nChainWork.GetHex()); - obj.pushKV("size_on_disk", CalculateCurrentUsage()); + obj.pushKV("size_on_disk", chainman.m_blockman.CalculateCurrentUsage()); obj.pushKV("pruned", fPruneMode); if (fPruneMode) { const CBlockIndex* block = tip; |