mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
fixed sync.loop flags (#9167)
This commit is contained in:
parent
b2fa618f74
commit
b4e6563e4a
@ -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
|
||||
|
||||
|
@ -186,4 +186,7 @@ var DefaultFlags = []cli.Flag{
|
||||
&utils.RPCSlowFlag,
|
||||
|
||||
&utils.TxPoolGossipDisableFlag,
|
||||
&SyncLoopBlockLimitFlag,
|
||||
&SyncLoopBreakAfterFlag,
|
||||
&SyncLoopPruneLimitFlag,
|
||||
}
|
||||
|
@ -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: "",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user