Skip to content

NewBlockPacket

Source (upstream pre-purge) Current
File eth/protocols/eth/protocol.go protocol_pow.go
Symbol NewBlockPacket NewBlockPacket
Ref 723aae2b4~1 etc/v1.17.4-full-node

Block propagation packet with TD. Removed from upstream v1.17.2 protocol.go. Still the type the sending side encodes and the backend consumes, so peer_pow.go and handler_eth.go are unchanged; inbound messages are decoded into rawNewBlockPacket instead and assembled into this afterwards. The sanityCheck() method moved to rawNewBlockPacket with it.

3-way merge — purge → getc ← upstream

pre-purgefork-only
// NewBlockPacket is the network packet for the block propagation message. It is
// what the sending side encodes and what the backend consumes; inbound messages
// are decoded into rawNewBlockPacket first and assembled into this afterwards.
type NewBlockPacket struct {
Block *types.Block
TD *big.Int
}

← eth Protocol