diff --git a/trie/iterator.go b/trie/iterator.go index 13457e4d84..90ed869bf7 100644 --- a/trie/iterator.go +++ b/trie/iterator.go @@ -274,7 +274,7 @@ func (it *nodeIterator) seek(prefix []byte) error { } } -// init initializes the the iterator. +// init initializes the iterator. func (it *nodeIterator) init() (*nodeIteratorState, error) { root := it.trie.Hash() state := &nodeIteratorState{node: it.trie.root, index: -1} diff --git a/trie/sync.go b/trie/sync.go index 38ce3a1ab0..d70af32497 100644 --- a/trie/sync.go +++ b/trie/sync.go @@ -198,7 +198,7 @@ func (s *Sync) AddCodeEntry(hash common.Hash, path []byte, parent common.Hash) { func (s *Sync) Missing(max int) []common.Hash { var requests []common.Hash for !s.queue.Empty() && (max == 0 || len(requests) < max) { - // Retrieve th enext item in line + // Retrieve the next item in line item, prio := s.queue.Peek() // If we have too many already-pending tasks for this depth, throttle