Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions polygon/bridge/snapshot_integrity.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"github.com/erigontech/erigon/common/log/v3"
"github.com/erigontech/erigon/db/kv"
"github.com/erigontech/erigon/execution/chain"
"github.com/erigontech/erigon/execution/stagedsync/stages"

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / win (windows-2025)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / lint

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used (typecheck)

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-24.04)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-24.04)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-24.04)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-24.04)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-24.04)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-24.04)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-24.04)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (ubuntu-24.04)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-15)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-15)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-15)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-15)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-15)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-15)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-15)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-mac-linux (macos-15)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2025)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2025)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2025)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2025)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2025)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used

Check failure on line 12 in polygon/bridge/snapshot_integrity.go

View workflow job for this annotation

GitHub Actions / tests-windows (windows-2025)

"github.com/erigontech/erigon/execution/stagedsync/stages" imported and not used
"github.com/erigontech/erigon/polygon/bor/borcfg"
polychain "github.com/erigontech/erigon/polygon/chain"
"github.com/erigontech/erigon/polygon/heimdall"
Expand Down Expand Up @@ -85,20 +85,7 @@

if db != nil {
err = db.View(ctx, func(tx kv.Tx) error {
if false {
lastEventId, err := NewSnapshotStore(NewTxStore(tx), snapshots, nil).LastEventId(ctx)
if err != nil {
return err
}

bodyProgress, err := stages.GetStageProgress(tx, stages.Bodies)
if err != nil {
return err
}

log.Info("[integrity] LAST Event", "event", lastEventId, "body-progress", bodyProgress)
}


return nil
})

Expand Down
Loading