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:
twoeths
2025-09-19 19:59:40 +07:00
committed by GitHub
parent 48a8beea92
commit 5c65fa3b36

View File

@@ -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",
{