STOP_AFTER_RECONSTITUTE=true

This commit is contained in:
alex.sharov 2023-01-11 10:16:21 +07:00
parent b299133e0f
commit 8be6e1b2cd

View File

@ -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)
}
}
}