diff --git a/l1infotreesync/processor.go b/l1infotreesync/processor.go index b50bb745..286ee4fc 100644 --- a/l1infotreesync/processor.go +++ b/l1infotreesync/processor.go @@ -278,12 +278,13 @@ func (p *processor) Reorg(ctx context.Context, firstReorgedBlock uint64) error { if err != nil { return err } - defer tx.Rollback() + c, err := tx.Cursor(blockTable) if err != nil { return err } defer c.Close() + firstKey := common.Uint64ToBytes(firstReorgedBlock) firstReorgedL1InfoTreeIndex := int64(-1) for blkKey, blkValue, err := c.Seek(firstKey); blkKey != nil; blkKey, blkValue, err = c.Next() {