diff --git a/eth/stagedsync/stage_execute.go b/eth/stagedsync/stage_execute.go index 19c62f9ad..a3d1a1882 100644 --- a/eth/stagedsync/stage_execute.go +++ b/eth/stagedsync/stage_execute.go @@ -5,6 +5,7 @@ import ( "encoding/binary" "errors" "fmt" + "os" "runtime" "time" @@ -257,6 +258,9 @@ func ExecBlockV3(s *StageState, u Unwinder, tx kv.RwTx, toBlock uint64, ctx cont if err := ReconstituteState(ctx, s, cfg.dirs, reconWorkers, cfg.batchSize, cfg.db, cfg.blockReader, log.New(), cfg.agg, cfg.engine, cfg.chainConfig, cfg.genesis); err != nil { return err } + if dbg.StopAfterReconst() { + os.Exit(1) + } } }