Skip to content

Commit ae4069e

Browse files
committed
[Core] Skip MoneySupply update during IBD
1 parent 5fc1f30 commit ae4069e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ bool static FlushStateToDisk(CValidationState& state, FlushStateMode mode)
18011801
return AbortNode(state, "Failed to write to coin database");
18021802
nLastFlush = nNow;
18031803
// Update money supply on memory, reading data from disk
1804-
if (!ShutdownRequested()) {
1804+
if (!ShutdownRequested() && !IsInitialBlockDownload()) {
18051805
MoneySupply.Update(pcoinsTip->GetTotalAmount(), chainActive.Height());
18061806
}
18071807
}

0 commit comments

Comments
 (0)