Documentation ¶
Index ¶
- Constants
- type BlockBodiesPacket
- type BlockBodiesPacket66
- type BlockBody
- type BlockHeadersPacket
- type BlockHeadersPacket66
- type GetBlockBodiesPacket
- type GetBlockBodiesPacket66
- type GetBlockHeadersPacket
- type GetBlockHeadersPacket66
- type GetPooledTransactionsPacket
- type GetPooledTransactionsPacket66
- type HashOrNumber
- type NewBlockHashesPacket
- type NewBlockPacket
- type NewPooledTransactionHashesPacket
- type PooledTransactionsPacket
- type PooledTransactionsPacket66
- type StatusPacket
- type TransactionsPacket
- type UpgradeStatusExtension
- type UpgradeStatusPacket
Constants ¶
View Source
const ( StatusMsg = 0x00 NewBlockHashesMsg = 0x01 TransactionsMsg = 0x02 GetBlockHeadersMsg = 0x03 BlockHeadersMsg = 0x04 GetBlockBodiesMsg = 0x05 BlockBodiesMsg = 0x06 NewBlockMsg = 0x07 GetNodeDataMsg = 0x0d NodeDataMsg = 0x0e GetReceiptsMsg = 0x0f ReceiptsMsg = 0x10 NewPooledTransactionHashesMsg = 0x08 GetPooledTransactionsMsg = 0x09 PooledTransactionsMsg = 0x0a UpgradeStatusMsg = 0x0b )
View Source
const MaxMessageSize = (10 * 1024 * 1024) // 10MB
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockBodiesPacket ¶
type BlockBodiesPacket []*BlockBody
type BlockBodiesPacket66 ¶
type BlockBodiesPacket66 struct { RequestId uint64 BlockBodiesPacket }
type BlockHeadersPacket ¶
type BlockHeadersPacket66 ¶
type BlockHeadersPacket66 struct { RequestId uint64 BlockHeadersPacket }
type GetBlockBodiesPacket ¶
type GetBlockBodiesPacket66 ¶
type GetBlockBodiesPacket66 struct { RequestId uint64 GetBlockBodiesPacket }
type GetBlockHeadersPacket ¶
type GetBlockHeadersPacket struct { Origin HashOrNumber Amount uint64 Skip uint64 Reverse bool }
type GetBlockHeadersPacket66 ¶
type GetBlockHeadersPacket66 struct { RequestId uint64 *GetBlockHeadersPacket }
type GetPooledTransactionsPacket66 ¶
type GetPooledTransactionsPacket66 struct { RequestId uint64 GetPooledTransactionsPacket }
type HashOrNumber ¶
other
type NewBlockHashesPacket ¶
type PooledTransactionsPacket ¶
type PooledTransactionsPacket []*types.Transaction
type PooledTransactionsPacket66 ¶
type PooledTransactionsPacket66 struct { RequestId uint64 PooledTransactionsPacket }
type StatusPacket ¶
type StatusPacket struct { ProtocolVersion uint32 NetworkID uint64 TD *big.Int Head common.Hash Genesis common.Hash ForkID forkid.ID }
status
type UpgradeStatusExtension ¶
type UpgradeStatusExtension struct {
DisablePeerTxBroadcast bool
}
type UpgradeStatusPacket ¶
func (*UpgradeStatusPacket) GetExtension ¶
func (p *UpgradeStatusPacket) GetExtension() (*UpgradeStatusExtension, error)
Click to show internal directories.
Click to hide internal directories.