Skip to content

Commit

Permalink
chore: fix struct field name in comment
Browse files Browse the repository at this point in the history
Signed-off-by: linchizhen <jiayanbing@yeah.net>
  • Loading branch information
linchizhen committed Dec 23, 2024
1 parent 5900d21 commit 6835f55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions eth/protocols/eth/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ type GetBlockHeadersPacket struct {
Reverse bool // Query direction (false = rising towards latest, true = falling towards genesis)
}

// GetBlockHeadersPacket represents a block header query over eth/66
// GetBlockHeadersPacket66 represents a block header query over eth/66
type GetBlockHeadersPacket66 struct {
RequestId uint64
*GetBlockHeadersPacket
Expand Down Expand Up @@ -202,7 +202,7 @@ func (hn *HashOrNumber) DecodeRLP(s *rlp.Stream) error {
// BlockHeadersPacket represents a block header response.
type BlockHeadersPacket []*types.Header

// BlockHeadersPacket represents a block header response over eth/66.
// BlockHeadersPacket66 represents a block header response over eth/66.
type BlockHeadersPacket66 struct {
RequestId uint64
BlockHeadersPacket
Expand Down Expand Up @@ -300,13 +300,13 @@ type BlockBodiesPacket []*types.Body
// BlockRawBodiesPacket is the network packet for block content distribution.
type BlockRawBodiesPacket []*types.RawBody

// BlockBodiesPacket is the network packet for block content distribution over eth/66.
// BlockBodiesPacket66 is the network packet for block content distribution over eth/66.
type BlockBodiesPacket66 struct {
RequestId uint64
BlockBodiesPacket
}

// BlockBodiesPacket is the network packet for block content distribution over eth/66.
// BlockRawBodiesPacket66 is the network packet for block content distribution over eth/66.
type BlockRawBodiesPacket66 struct {
RequestId uint64
BlockRawBodiesPacket
Expand Down Expand Up @@ -340,7 +340,7 @@ func (p *BlockRawBodiesPacket) Unpack() ([][][]byte, [][]*types.Header, []types.
// GetReceiptsPacket represents a block receipts query.
type GetReceiptsPacket []libcommon.Hash

// GetReceiptsPacket represents a block receipts query over eth/66.
// GetReceiptsPacket66 represents a block receipts query over eth/66.
type GetReceiptsPacket66 struct {
RequestId uint64
GetReceiptsPacket
Expand All @@ -349,7 +349,7 @@ type GetReceiptsPacket66 struct {
// ReceiptsPacket is the network packet for block receipts distribution.
type ReceiptsPacket [][]*types.Receipt

// ReceiptsPacket is the network packet for block receipts distribution over eth/66.
// ReceiptsPacket66 is the network packet for block receipts distribution over eth/66.
type ReceiptsPacket66 struct {
RequestId uint64
ReceiptsPacket
Expand All @@ -358,7 +358,7 @@ type ReceiptsPacket66 struct {
// ReceiptsRLPPacket is used for receipts, when we already have it encoded
type ReceiptsRLPPacket []rlp.RawValue

// ReceiptsPacket66 is the eth-66 version of ReceiptsRLPPacket
// ReceiptsRLPPacket66 is the eth-66 version of ReceiptsRLPPacket
type ReceiptsRLPPacket66 struct {
RequestId uint64
ReceiptsRLPPacket
Expand Down
2 changes: 1 addition & 1 deletion turbo/stages/bodydownload/body_algos.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ func (bd *BodyDownload) DeliverBodies(txs [][][]byte, uncles [][]*types.Header,
}
}

// RawTransaction implements core/types.DerivableList interface for hashing
// RawTransactions implements core/types.DerivableList interface for hashing
type RawTransactions [][]byte

func (rt RawTransactions) Len() int {
Expand Down

0 comments on commit 6835f55

Please sign in to comment.