Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Broadcaster ¶
type Broadcaster struct {
// contains filtered or unexported fields
}
Broadcaster submits transactions to a tendermint node
func NewBroadcaster ¶
NewBroadcaster returns a broadcaster to submit transactions to the blockchain. Only one instance of a broadcaster should be run for a given account, otherwise risk conflicting sequence numbers for submitted transactions.
func (*Broadcaster) Broadcast ¶
func (b *Broadcaster) Broadcast(ctx sdkClient.Context, msgs ...sdk.Msg) (*sdk.TxResponse, error)
Broadcast sends the passed messages to the network. This function in thread-safe.
type RetryPipeline ¶
type RetryPipeline struct {
// contains filtered or unexported fields
}
RetryPipeline manages serialized execution of functions with retry on error
func NewPipelineWithRetry ¶
func NewPipelineWithRetry(cap int, maxRetries int, backOffStrategy utils.BackOff, logger log.Logger) *RetryPipeline
NewPipelineWithRetry returns a pipeline with the given configuration
Click to show internal directories.
Click to hide internal directories.