mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-12 04:40:28 +02:00
refactor: block import implies IsInitialBlockDownload
This commit is contained in:
parent
faba65e696
commit
fa06d7e934
@ -2576,7 +2576,7 @@ void ProcessMessage(
|
||||
LogPrint(BCLog::NET, "transaction (%s) inv sent in violation of protocol, disconnecting peer=%d\n", inv.hash.ToString(), pfrom.GetId());
|
||||
pfrom.fDisconnect = true;
|
||||
return;
|
||||
} else if (!fAlreadyHave && !fImporting && !fReindex && !::ChainstateActive().IsInitialBlockDownload()) {
|
||||
} else if (!fAlreadyHave && !chainman.ActiveChainstate().IsInitialBlockDownload()) {
|
||||
RequestTx(State(pfrom.GetId()), inv.hash, current_time);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user