cmd/devp2p/internal/ethtest: remove copied assignment of hash

This commit is contained in:
Felix Lange 2025-05-17 21:44:14 +02:00
parent a772095a77
commit 3f0af1daab

View file

@ -585,8 +585,6 @@ The node should accept the update and should not disonnect.`)
defer conn.Close() defer conn.Close()
head := s.chain.Head() head := s.chain.Head()
var hash common.Hash
rand.Read(hash[:])
conn.Write(ethProto, eth.BlockRangeUpdateMsg, &eth.BlockRangeUpdatePacket{ conn.Write(ethProto, eth.BlockRangeUpdateMsg, &eth.BlockRangeUpdatePacket{
EarliestBlock: head.NumberU64() - 10, EarliestBlock: head.NumberU64() - 10,
LatestBlock: head.NumberU64(), LatestBlock: head.NumberU64(),