fixed sync.loop flags (#9167)

This commit is contained in:
Dmytro 2024-01-08 18:52:28 +01:00 committed by GitHub
parent b2fa618f74
commit b4e6563e4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -310,7 +310,7 @@ func (s *Sync) RunNoInterrupt(db kv.RwDB, tx kv.RwTx, firstCycle bool) error {
}
if string(stage.ID) == s.cfg.BreakAfterStage { // break process loop
s.logger.Warn("--sync.loop.break caused stage break")
s.logger.Warn("--sync.loop.break.after caused stage break")
break
}
@ -385,7 +385,7 @@ func (s *Sync) Run(db kv.RwDB, tx kv.RwTx, firstCycle bool) (bool, error) {
}
if string(stage.ID) == s.cfg.BreakAfterStage { // break process loop
s.logger.Warn("--sync.loop.break caused stage break")
s.logger.Warn("--sync.loop.break.after caused stage break")
if s.posTransition != nil {
ptx := tx

View File

@ -186,4 +186,7 @@ var DefaultFlags = []cli.Flag{
&utils.RPCSlowFlag,
&utils.TxPoolGossipDisableFlag,
&SyncLoopBlockLimitFlag,
&SyncLoopBreakAfterFlag,
&SyncLoopPruneLimitFlag,
}

View File

@ -156,7 +156,7 @@ var (
}
SyncLoopBreakAfterFlag = cli.StringFlag{
Name: "sync.loop.break",
Name: "sync.loop.break.after",
Usage: "Sets the last stage of the sync loop to run",
Value: "",
}