@@ -169,7 +169,7 @@ func (hn *HashOrNumber) DecodeRLP(s *rlp.Stream) error {
169
169
// BlockHeadersPacket represents a block header response.
170
170
type BlockHeadersPacket []* types.Header
171
171
172
- // BlockHeadersPacket represents a block header response over eth/66.
172
+ // BlockHeadersPacket66 represents a block header response over eth/66.
173
173
type BlockHeadersPacket66 struct {
174
174
RequestId uint64
175
175
BlockHeadersPacket
@@ -179,7 +179,7 @@ type BlockHeadersPacket66 struct {
179
179
// have the headers rlp encoded.
180
180
type BlockHeadersRLPPacket []rlp.RawValue
181
181
182
- // BlockHeadersPacket represents a block header response over eth/66.
182
+ // BlockHeadersRLPPacket66 represents a block header response over eth/66.
183
183
type BlockHeadersRLPPacket66 struct {
184
184
RequestId uint64
185
185
BlockHeadersRLPPacket
@@ -207,7 +207,7 @@ func (request *NewBlockPacket) sanityCheck() error {
207
207
// GetBlockBodiesPacket represents a block body query.
208
208
type GetBlockBodiesPacket []common.Hash
209
209
210
- // GetBlockBodiesPacket represents a block body query over eth/66.
210
+ // GetBlockBodiesPacket66 represents a block body query over eth/66.
211
211
type GetBlockBodiesPacket66 struct {
212
212
RequestId uint64
213
213
GetBlockBodiesPacket
@@ -216,7 +216,7 @@ type GetBlockBodiesPacket66 struct {
216
216
// BlockBodiesPacket is the network packet for block content distribution.
217
217
type BlockBodiesPacket []* BlockBody
218
218
219
- // BlockBodiesPacket is the network packet for block content distribution over eth/66.
219
+ // BlockBodiesPacket66 is the network packet for block content distribution over eth/66.
220
220
type BlockBodiesPacket66 struct {
221
221
RequestId uint64
222
222
BlockBodiesPacket
@@ -255,7 +255,7 @@ func (p *BlockBodiesPacket) Unpack() ([][]*types.Transaction, [][]*types.Header)
255
255
// GetNodeDataPacket represents a trie node data query.
256
256
type GetNodeDataPacket []common.Hash
257
257
258
- // GetNodeDataPacket represents a trie node data query over eth/66.
258
+ // GetNodeDataPacket66 represents a trie node data query over eth/66.
259
259
type GetNodeDataPacket66 struct {
260
260
RequestId uint64
261
261
GetNodeDataPacket
@@ -264,7 +264,7 @@ type GetNodeDataPacket66 struct {
264
264
// NodeDataPacket is the network packet for trie node data distribution.
265
265
type NodeDataPacket [][]byte
266
266
267
- // NodeDataPacket is the network packet for trie node data distribution over eth/66.
267
+ // NodeDataPacket66 is the network packet for trie node data distribution over eth/66.
268
268
type NodeDataPacket66 struct {
269
269
RequestId uint64
270
270
NodeDataPacket
@@ -273,7 +273,7 @@ type NodeDataPacket66 struct {
273
273
// GetReceiptsPacket represents a block receipts query.
274
274
type GetReceiptsPacket []common.Hash
275
275
276
- // GetReceiptsPacket represents a block receipts query over eth/66.
276
+ // GetReceiptsPacket66 represents a block receipts query over eth/66.
277
277
type GetReceiptsPacket66 struct {
278
278
RequestId uint64
279
279
GetReceiptsPacket
@@ -282,7 +282,7 @@ type GetReceiptsPacket66 struct {
282
282
// ReceiptsPacket is the network packet for block receipts distribution.
283
283
type ReceiptsPacket [][]* types.Receipt
284
284
285
- // ReceiptsPacket is the network packet for block receipts distribution over eth/66.
285
+ // ReceiptsPacket66 is the network packet for block receipts distribution over eth/66.
286
286
type ReceiptsPacket66 struct {
287
287
RequestId uint64
288
288
ReceiptsPacket
@@ -291,7 +291,7 @@ type ReceiptsPacket66 struct {
291
291
// ReceiptsRLPPacket is used for receipts, when we already have it encoded
292
292
type ReceiptsRLPPacket []rlp.RawValue
293
293
294
- // ReceiptsPacket66 is the eth-66 version of ReceiptsRLPPacket
294
+ // ReceiptsRLPPacket66 is the eth-66 version of ReceiptsRLPPacket
295
295
type ReceiptsRLPPacket66 struct {
296
296
RequestId uint64
297
297
ReceiptsRLPPacket
@@ -311,13 +311,13 @@ type GetPooledTransactionsPacket66 struct {
311
311
// PooledTransactionsPacket is the network packet for transaction distribution.
312
312
type PooledTransactionsPacket []* types.Transaction
313
313
314
- // PooledTransactionsPacket is the network packet for transaction distribution over eth/66.
314
+ // PooledTransactionsPacket66 is the network packet for transaction distribution over eth/66.
315
315
type PooledTransactionsPacket66 struct {
316
316
RequestId uint64
317
317
PooledTransactionsPacket
318
318
}
319
319
320
- // PooledTransactionsPacket is the network packet for transaction distribution, used
320
+ // PooledTransactionsRLPPacket is the network packet for transaction distribution, used
321
321
// in the cases we already have them in rlp-encoded form
322
322
type PooledTransactionsRLPPacket []rlp.RawValue
323
323
0 commit comments