stagedsync: allow long stages/unwinds to be interrupted (#643)
use `s.UpdateWithStageData(db, <block number>, <key>)` to store the key use `s.StageData` with `etl.NextKey` to restart ETL from where it was interrupted.
Showing
- cmd/hack/hack.go 9 additions, 9 deletionscmd/hack/hack.go
- eth/stagedsync/stage.go 9 additions, 3 deletionseth/stagedsync/stage.go
- eth/stagedsync/stage_bodies.go 1 addition, 1 deletioneth/stagedsync/stage_bodies.go
- eth/stagedsync/stage_execute.go 5 additions, 19 deletionseth/stagedsync/stage_execute.go
- eth/stagedsync/stage_execute_test.go 25 additions, 12 deletionseth/stagedsync/stage_execute_test.go
- eth/stagedsync/stage_interhashes.go 3 additions, 10 deletionseth/stagedsync/stage_interhashes.go
- eth/stagedsync/stage_senders.go 2 additions, 14 deletionseth/stagedsync/stage_senders.go
- eth/stagedsync/stagedsync.go 3 additions, 3 deletionseth/stagedsync/stagedsync.go
- eth/stagedsync/stages/stages.go 25 additions, 22 deletionseth/stagedsync/stages/stages.go
- eth/stagedsync/state.go 43 additions, 13 deletionseth/stagedsync/state.go
- eth/stagedsync/state_test.go 163 additions, 6 deletionseth/stagedsync/state_test.go
- eth/stagedsync/unwind.go 12 additions, 7 deletionseth/stagedsync/unwind.go
- eth/stagedsync/unwind_test.go 10 additions, 10 deletionseth/stagedsync/unwind_test.go
Loading
Please register or sign in to comment