mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 20:11:21 +00:00
Allow snapshot block execution before waiting for CL (#6947)
This gives Erigon a chance to execute snapshot blocks before CL is ready. Not sure why it was commented out in PR #5684.
This commit is contained in:
parent
e4c010d590
commit
3a25fb45fb
@ -158,16 +158,15 @@ func HeadersPOS(
|
||||
useExternalTx bool,
|
||||
preProgress uint64,
|
||||
) error {
|
||||
/*
|
||||
if initialCycle {
|
||||
// Let execution and other stages to finish before waiting for CL, but only if other stages aren't ahead
|
||||
if execProgress, err := stages.GetStageProgress(tx, stages.Execution); err != nil {
|
||||
return err
|
||||
} else if s.BlockNumber >= execProgress {
|
||||
return nil
|
||||
}
|
||||
if initialCycle {
|
||||
// Let execution and other stages to finish before waiting for CL, but only if other stages aren't ahead.
|
||||
// Specifically, this allows to execute snapshot blocks before waiting for CL.
|
||||
if execProgress, err := s.ExecutionAt(tx); err != nil {
|
||||
return err
|
||||
} else if s.BlockNumber >= execProgress {
|
||||
return nil
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
cfg.hd.SetPOSSync(true)
|
||||
syncing := cfg.hd.PosStatus() != headerdownload.Idle
|
||||
|
Loading…
Reference in New Issue
Block a user