Next chain tip error caught and fixed for astrid stage integration:
append with gap blockNum=11561329, but current height=11561327
happens after unwind due to a fork change in the corresponding fork choice update.
This is due to a bug in the logic of handling fork choice updates in the stage integration. The issue is that when processing the cachedForkChoice after we have done the unwind, fixCanonicalChain returns empty newNodes (correctly, since the chain was fixed before we cached the fork choice). The solution is to cache the new nodes as the cachedForkChoice so that when we process the cached fork choice in the next iteration we can correctly update the tx nums for the new nodes.
Next chain tip error caught and fixed for astrid stage integration:
happens after unwind due to a fork change in the corresponding fork choice update.
This is due to a bug in the logic of handling fork choice updates in the stage integration. The issue is that when processing the
cachedForkChoice
after we have done the unwind,fixCanonicalChain
returns emptynewNodes
(correctly, since the chain was fixed before we cached the fork choice). The solution is to cache the new nodes as thecachedForkChoice
so that when we process the cached fork choice in the next iteration we can correctly update the tx nums for the new nodes.Full logs: