trie: fix typos (#1080)

This commit is contained in:
Daniel Liu 2025-06-17 13:25:40 +08:00 committed by GitHub
parent 5e8a096844
commit bebc87e2f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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}

View file

@ -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