mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-19 18:02:54 +01:00
Remove executing block callbacks if node is in IBD (#5193)
This commit is contained in:
parent
998c997ac5
commit
e423de01e1
@ -377,10 +377,10 @@ case class DataMessageHandler(
|
||||
handleDataPayload(payload = headersMessage,
|
||||
peerData = peerData)
|
||||
} else {
|
||||
appConfig.callBacks
|
||||
.executeOnBlockHeadersReceivedCallbacks(
|
||||
Vector(block.blockHeader))
|
||||
.map(_ => this)
|
||||
//else ignore it until we are done with ibd
|
||||
logger.info(
|
||||
s"Received block=${block.blockHeader.hashBE.hex} while in IBD, ignoring it until IBD complete state=${state}.")
|
||||
Future.successful(this)
|
||||
}
|
||||
}
|
||||
} yield {
|
||||
|
Loading…
Reference in New Issue
Block a user