File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
codegenerator/cli/templates/static/codegen/src/globalState Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1036,10 +1036,14 @@ let injectedTaskReducer = (
10361036 //pre registration is done, we've hit the multichain reorg threshold
10371037 //on the last batch and there are no items on the queue
10381038 dispatchAction (StartIndexingAfterPreRegister )
1039- | {val : None } if state .chainManager -> ChainManager .isFetchingAtHead || ! ( state . chainManager -> ChainManager . isActivelyIndexing ) =>
1040- //pre registration is done, there are no items on the queue and we are fetching at head or reached the endBlock
1039+ | {val : None } if state .chainManager -> ChainManager .isFetchingAtHead =>
1040+ //pre registration is done, there are no items on the queue and we are fetching at head
10411041 //this case is only hit if we are indexing chains with no reorg threshold
10421042 dispatchAction (StartIndexingAfterPreRegister )
1043+ | {val : None } if ! (state .chainManager -> ChainManager .isActivelyIndexing ) =>
1044+ //pre registration is done, there are no items on the queue
1045+ //this case is hit when there's a chain with an endBlock
1046+ dispatchAction (StartIndexingAfterPreRegister )
10431047 | _ => () //Nothing to process and pre registration is not done
10441048 }
10451049 }
You can’t perform that action at this time.
0 commit comments