mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-23 12:07:17 +00:00
Fix limit = 0 (unlimited) (#731)
This commit is contained in:
parent
686f186545
commit
bae2e7094a
@ -78,7 +78,7 @@ func (l *progressLogger) Stop() {
|
||||
}
|
||||
|
||||
func SpawnExecuteBlocksStage(s *StageState, stateDB ethdb.Database, blockchain BlockChain, limit uint64, quit <-chan struct{}, dests vm.Cache, writeReceipts bool) error {
|
||||
if limit <= s.BlockNumber {
|
||||
if limit > 0 && limit <= s.BlockNumber {
|
||||
s.Done()
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user