Add BlockManager::GetPruneTarget()

This commit is contained in:
MarcoFalke 2023-01-16 17:08:35 +01:00
parent fa0f0436d8
commit fae71fe27e
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
4 changed files with 11 additions and 7 deletions

View file

@ -1273,7 +1273,7 @@ RPCHelpMan getblockchaininfo()
bool automatic_pruning{args.GetIntArg("-prune", 0) != 1};
obj.pushKV("automatic_pruning", automatic_pruning);
if (automatic_pruning) {
obj.pushKV("prune_target_size", node::nPruneTarget);
obj.pushKV("prune_target_size", chainman.m_blockman.GetPruneTarget());
}
}