mirror of
https://github.com/ChainSafe/lodestar.git
synced 2026-01-09 15:48:08 -05:00
fix: wait for block and all data (#8430)
**Motivation** - got a case where all columns came timely while block came very late and we did not trigger `incompleteBlockInput` event **Description** - trigger `incompleteBlockInput` in that case Closes #8405 Co-authored-by: Tuyen Nguyen <twoeths@users.noreply.github.com>
This commit is contained in:
@@ -564,7 +564,7 @@ function getSequentialHandlers(modules: ValidatorFnsModules, options: GossipHand
|
||||
...blockInputMeta,
|
||||
});
|
||||
// do not await here to not delay gossip validation
|
||||
blockInput.waitForAllData(cutoffTimeMs).catch((_e) => {
|
||||
blockInput.waitForBlockAndAllData(cutoffTimeMs).catch((_e) => {
|
||||
chain.logger.debug(
|
||||
"Waited for data after receiving gossip column. Cut-off reached so attempting to fetch remainder of BlockInput",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user