Skip to content

Commit 0286103

Browse files
committed
eth/downloader, eth/protocols: clean up todos
1 parent 0fb927f commit 0286103

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

eth/downloader/downloader.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,8 +1080,8 @@ func (d *Downloader) DeliverSnapPacket(peer *snap.Peer, packet snap.Packet) erro
10801080
return d.SnapSyncer.OnByteCodes(peer, packet.ID, packet.Codes)
10811081

10821082
case *snap.TrieNodesPacket:
1083-
// Snap/2 no longer requests trie nodes; ignore stale responses
1084-
// TODO JR: Delete this
1083+
// Snap/2 no longer requests trie nodes. Stale responses from
1084+
// snap/1 peers are silently ignored.
10851085
return nil
10861086

10871087
case *snap.AccessListsPacket:

eth/protocols/snap/bal_apply.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ func (s *Syncer) applyAccessList(b *bal.BlockAccessList) error {
5656
if data := rawdb.ReadAccountSnapshot(s.db, accountHash); len(data) > 0 {
5757
existing, err := types.FullAccount(data)
5858
if err != nil {
59-
// TODO JR: What to do in this case?
6059
return fmt.Errorf("failed to decode account %v: %w", addr, err)
6160
}
6261
account = *existing

0 commit comments

Comments
 (0)