mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
trie: fix typos (#1080)
This commit is contained in:
parent
5e8a096844
commit
bebc87e2f0
2 changed files with 2 additions and 2 deletions
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue