Documentation ¶
Index ¶
- type BtcdNotifier
- func (b *BtcdNotifier) RegisterConfirmationsNotification(txid *wire.ShaHash, numConfs uint32, trigger *chainntnfs.NotificationTrigger) error
- func (b *BtcdNotifier) RegisterSpendNotification(outpoint *wire.OutPoint, trigger *chainntnfs.NotificationTrigger) error
- func (b *BtcdNotifier) Start() error
- func (b *BtcdNotifier) Stop() error
- type ChainConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BtcdNotifier ¶
type BtcdNotifier struct {
// contains filtered or unexported fields
}
BtcdNotifier...
func NewBtcdNotifier ¶
func NewBtcdNotifier(c ChainConnection) (*BtcdNotifier, error)
NewBtcdNotifier...
func (*BtcdNotifier) RegisterConfirmationsNotification ¶
func (b *BtcdNotifier) RegisterConfirmationsNotification(txid *wire.ShaHash, numConfs uint32, trigger *chainntnfs.NotificationTrigger) error
RegisterConfirmationsNotification...
func (*BtcdNotifier) RegisterSpendNotification ¶
func (b *BtcdNotifier) RegisterSpendNotification(outpoint *wire.OutPoint, trigger *chainntnfs.NotificationTrigger) error
RegisterSpendNotification... NOTE: eventChan MUST be buffered
type ChainConnection ¶
type ChainConnection interface { ListenConnectedBlocks() (<-chan wtxmgr.BlockMeta, error) ListenDisconnectedBlocks() (<-chan wtxmgr.BlockMeta, error) ListenRelevantTxs() (<-chan chain.RelevantTx, error) }
ChainConnection... Required in order to avoid an import cycle, and do aide in testing.
Click to show internal directories.
Click to hide internal directories.