mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
refactor: block import implies IsInitialBlockDownload
This commit is contained in:
parent
faba65e696
commit
fa06d7e934
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue