Skip to content

Commit

Permalink
Update eth/protocols/snap/sync.go
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman committed Jun 7, 2022
1 parent c2b94fb commit 765c110
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/protocols/snap/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -2781,7 +2781,7 @@ func (s *Syncer) onHealState(paths [][]byte, value []byte) error {
if len(paths) == 1 {
var account types.StateAccount
if err := rlp.DecodeBytes(value, &account); err != nil {
return nil // TODO: Shouldn't this return the error? / @holiman
return nil // Returning the error here would drop the remote peer
}
blob := snapshot.SlimAccountRLP(account.Nonce, account.Balance, account.Root, account.CodeHash)
rawdb.WriteAccountSnapshot(s.stateWriter, common.BytesToHash(paths[0]), blob)
Expand Down

0 comments on commit 765c110

Please sign in to comment.