Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on simulated L1 reorg #291

Open
xavier-romero opened this issue Jan 31, 2025 · 0 comments
Open

Error on simulated L1 reorg #291

xavier-romero opened this issue Jan 31, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@xavier-romero
Copy link

Bug Report

Description

Error on cdk-node when simulating L1 reorg.

To Reproduce

Copy & paste steps to reproduce the env/error:

https://github.com/0xPolygon/kurtosis-cdk/blob/anvil_reorg/docs/anvil_reorg.sh

Expected behavior

Reorg detected, reprocess l1 blocks, everything working, no errors.

Screenshots

Full log here:
cdknode-kurtosis.logs.gz

Error:

[cdk-node-001] 2025-01-30T13:46:46.665Z ERROR internal/synchronizer_block_range_process.go:147 error l1EventProcessors.Process: sequence batch is not contiguous: last on DB SequencedBatches{FromBatchNumber: 28, ToBatchNumber: 29, L1BlockNumber: 678, ForkID: 12, Timestamp: 2025-01-30 13:43:53 +0000 UTC, ReceivedAt: 2025-01-30 13:44:36.576330661 +0000 UTC, L1InfoRoot: 0xa711727d556810e5788ef8a0fa4a4ecaa95c0daa91d9667df18b77807958d52c, Source: SequenceBatches/Validium/banana}, new sequence SequencedBatches{FromBatchNumber: 4, ToBatchNumber: 7, L1BlockNumber: 798, ForkID: 12, Timestamp: 2025-01-30 13:45:54 +0000 UTC, ReceivedAt: 2025-01-30 13:46:46.665662037 +0000 UTC m=+613.413740106, L1InfoRoot: 0xa711727d556810e5788ef8a0fa4a4ecaa95c0daa91d9667df18b77807958d52c, Source: SequenceBatches/Validium/banana} [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/log/log.go:140 github.com/0xPolygonHermez/zkevm-synchronizer-l1/log.appendStackTraceMaybeArgs() [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/log/log.go:215 github.com/0xPolygonHermez/zkevm-synchronizer-l1/log.Error() [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_block_range_process.go:147 github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*BlockRangeProcess).processElement() [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_block_range_process.go:122 github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*BlockRangeProcess).processBlock() [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_block_range_process.go:95 github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*BlockRangeProcess).internalProcessBlockRange() [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_block_range_process.go:52 github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*BlockRangeProcess).ProcessBlockRange() [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/l1_sync/l1_syncer_sequential.go:229 github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/l1_sync.(*L1SequentialSync).iteration() [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/l1_sync/l1_syncer_sequential.go:152 github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/l1_sync.(*L1SequentialSync).SyncBlocks() [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_impl.go:259 github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*SynchronizerImpl).Sync() [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/synchronizer_adapter.go:44 github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer.(*SynchronizerAdapter).Sync() [cdk-node-001] /go/src/github.com/0xPolygon/cdk/aggregator/aggregator.go:309 github.com/0xPolygon/cdk/aggregator.(*Aggregator).Start.func1() [cdk-node-001] {"pid": 9} [cdk-node-001] github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*BlockRangeProcess).processElement [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_block_range_process.go:147 [cdk-node-001] github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*BlockRangeProcess).processBlock [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_block_range_process.go:122 [cdk-node-001] github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*BlockRangeProcess).internalProcessBlockRange [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_block_range_process.go:95 [cdk-node-001] github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*BlockRangeProcess).ProcessBlockRange [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_block_range_process.go:52 [cdk-node-001] github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/l1_sync.(*L1SequentialSync).iteration [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/l1_sync/l1_syncer_sequential.go:229 [cdk-node-001] github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/l1_sync.(*L1SequentialSync).SyncBlocks [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/l1_sync/l1_syncer_sequential.go:152 [cdk-node-001] github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer/internal.(*SynchronizerImpl).Sync [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/internal/synchronizer_impl.go:259 [cdk-node-001] github.com/0xPolygonHermez/zkevm-synchronizer-l1/synchronizer.(*SynchronizerAdapter).Sync [cdk-node-001] /go/pkg/mod/github.com/0x!polygon!hermez/zkevm-synchronizer-l1@v1.0.6/synchronizer/synchronizer_adapter.go:44 [cdk-node-001] github.com/0xPolygon/cdk/aggregator.(*Aggregator).Start.func1 [cdk-node-001] /go/src/github.com/0xPolygon/cdk/aggregator/aggregator.go:309

Environment (please complete the following information):

cdknode 0.5.1-rc3

@xavier-romero xavier-romero added the bug Something isn't working label Jan 31, 2025
@xavier-romero xavier-romero changed the title [BUG] Error on simulated L1 reorg Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant