Skip to content

Commit

Permalink
eth/protocols/snap: fix accidental batch reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Apr 27, 2021
1 parent 7edc4f6 commit 6dde2c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eth/protocols/snap/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -1829,6 +1829,7 @@ func (s *Syncer) processStorageResponse(res *storageResponse) {
r := newHashRange(lastKey, chunks)

// Our first task is the one that was just filled by this response.
batch := s.db.NewBatch()
tasks = append(tasks, &storageTask{
Next: common.Hash{},
Last: r.End(),
Expand Down

0 comments on commit 6dde2c5

Please sign in to comment.