good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit bae2e709 authored by Andrew Ashikhmin's avatar Andrew Ashikhmin Committed by GitHub
Browse files

Fix limit = 0 (unlimited) (#731)

parent 686f1865
Branches
Tags
No related merge requests found
...@@ -78,7 +78,7 @@ func (l *progressLogger) Stop() { ...@@ -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 { 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() s.Done()
return nil return nil
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment