Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EthMsgSoftCapSize is the ideal size of encoded transaction bytes we send in // any [EthTxs] or [AtomicTx] message. We do not limit inbound messages to // this size, however. Max inbound message size is enforced by the codec // (512KB). EthMsgSoftCapSize = common.StorageSize(64 * units.KiB) )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AtomicTx ¶
type AtomicTx struct { Tx []byte `serialize:"true"` // contains filtered or unexported fields }
type EthTxs ¶
type EthTxs struct { Txs []byte `serialize:"true"` // contains filtered or unexported fields }
type Message ¶
type Message interface { // Handle this message with the correct message handler Handle(handler Handler, nodeID ids.ShortID, requestID uint32) error // Bytes returns the binary representation of this message // // Bytes should only be called after being initialized Bytes() []byte // contains filtered or unexported methods }
type NoopHandler ¶
type NoopHandler struct{}
func (NoopHandler) HandleAtomicTx ¶
func (NoopHandler) HandleEthTxs ¶
Click to show internal directories.
Click to hide internal directories.