mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Add BlockManager::GetPruneTarget()
This commit is contained in:
parent
fa0f0436d8
commit
fae71fe27e
4 changed files with 11 additions and 7 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue