Skip to content

Commit fa06d7e

Browse files
author
MarcoFalke
committed
refactor: block import implies IsInitialBlockDownload
1 parent faba65e commit fa06d7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2576,7 +2576,7 @@ void ProcessMessage(
25762576
LogPrint(BCLog::NET, "transaction (%s) inv sent in violation of protocol, disconnecting peer=%d\n", inv.hash.ToString(), pfrom.GetId());
25772577
pfrom.fDisconnect = true;
25782578
return;
2579-
} else if (!fAlreadyHave && !fImporting && !fReindex && !::ChainstateActive().IsInitialBlockDownload()) {
2579+
} else if (!fAlreadyHave && !chainman.ActiveChainstate().IsInitialBlockDownload()) {
25802580
RequestTx(State(pfrom.GetId()), inv.hash, current_time);
25812581
}
25822582
}

0 commit comments

Comments
 (0)