Skip to content

Commit

Permalink
peer.go: added p.td
Browse files Browse the repository at this point in the history
  • Loading branch information
alanorwick committed Jun 30, 2022
1 parent d93ef48 commit 3800588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/protocols/eth/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (p *Peer) Head() (hash common.Hash, td []*big.Int) {

copy(hash[:], p.head[:])
newTd := new([]*big.Int)
copy(*newTd, td)
copy(*newTd, p.td)
return hash, *newTd
}

Expand Down

0 comments on commit 3800588

Please sign in to comment.