Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxnRelayer ¶
type TxnRelayer struct {
// contains filtered or unexported fields
}
TxnRelayer relays raw transaction by broadcasting to node pool of different regions to accelerate P2P diffusion.
func MustNewTxnRelayerFromViper ¶
func MustNewTxnRelayerFromViper() *TxnRelayer
func NewTxnRelayer ¶
func NewTxnRelayer(relayConf *TxnRelayerConfig) (*TxnRelayer, error)
func NewTxnRelayerFromViper ¶
func NewTxnRelayerFromViper() (*TxnRelayer, error)
func (*TxnRelayer) AsyncRelay ¶
func (relayer *TxnRelayer) AsyncRelay(signedTx hexutil.Bytes) bool
AsyncRelay relays raw transaction broadcasting asynchronously.
Click to show internal directories.
Click to hide internal directories.