Versions in this module Expand all Collapse all v0 v0.11.2 Mar 18, 2021 v0.11.1 Mar 18, 2021 Changes in this version + const DefaultRebroadcastInterval + var ErrBroadcasterStopped = errors.New("broadcaster has been stopped") + func DisableLog() + func IsBroadcastError(err error, codes ...BroadcastErrorCode) bool + func UseLogger(logger btclog.Logger) + type BroadcastError struct + Code BroadcastErrorCode + Reason string + func ParseBroadcastError(msg *wire.MsgReject, peerAddr string) *BroadcastError + func (e *BroadcastError) Error() string + type BroadcastErrorCode uint8 + const Confirmed + const InsufficientFee + const Invalid + const Mempool + const Unknown + func (c BroadcastErrorCode) String() string + type Broadcaster struct + func NewBroadcaster(cfg *Config) *Broadcaster + func (b *Broadcaster) Broadcast(tx *wire.MsgTx) error + func (b *Broadcaster) Start() error + func (b *Broadcaster) Stop() + type Config struct + Broadcast func(*wire.MsgTx) error + RebroadcastInterval time.Duration + SubscribeBlocks func() (*blockntfns.Subscription, error)