Skip to content

SCORU/Node: fix issue with level information during reorganisation

Alain Mebsout requested to merge alain@functori@fix-scoru-node-level into master

Context

This MR fixes an issue with the way the rollup node associates levels to block hashes when there is a reorganisation involving a block that was already seen.

level:  1     2     3 

chain:  A --> B --> C
         \--> B'--> C'   (reorg 1)
         \--> B --> C''  (reorg 2) 

In the second reorg, the level 2 would stay associated to B' while it should have been reset to B.

Edited by Alain Mebsout

Merge request reports