mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge 3a7e0a210c into merged_master (Bitcoin PR bitcoin/bitcoin#24513)
This commit is contained in:
commit
b80b3aeff4
33 changed files with 154 additions and 154 deletions
|
|
@ -272,7 +272,7 @@ void Shutdown(NodeContext& node)
|
|||
// FlushStateToDisk generates a ChainStateFlushed callback, which we should avoid missing
|
||||
if (node.chainman) {
|
||||
LOCK(cs_main);
|
||||
for (CChainState* chainstate : node.chainman->GetAll()) {
|
||||
for (Chainstate* chainstate : node.chainman->GetAll()) {
|
||||
if (chainstate->CanFlushToDisk()) {
|
||||
chainstate->ForceFlushStateToDisk();
|
||||
}
|
||||
|
|
@ -303,7 +303,7 @@ void Shutdown(NodeContext& node)
|
|||
|
||||
if (node.chainman) {
|
||||
LOCK(cs_main);
|
||||
for (CChainState* chainstate : node.chainman->GetAll()) {
|
||||
for (Chainstate* chainstate : node.chainman->GetAll()) {
|
||||
if (chainstate->CanFlushToDisk()) {
|
||||
chainstate->ForceFlushStateToDisk();
|
||||
chainstate->ResetCoinsViews();
|
||||
|
|
@ -1681,7 +1681,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
|||
if (fPruneMode) {
|
||||
if (!fReindex) {
|
||||
LOCK(cs_main);
|
||||
for (CChainState* chainstate : chainman.GetAll()) {
|
||||
for (Chainstate* chainstate : chainman.GetAll()) {
|
||||
uiInterface.InitMessage(_("Pruning blockstore…").translated);
|
||||
chainstate->PruneAndFlush();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue