btcdnotify

package
v0.0.0-...-2cbe605 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func (*BtcdNotifier) Start

func (b *BtcdNotifier) Start() error

Start...

func (*BtcdNotifier) Stop

func (b *BtcdNotifier) Stop() error

Stop...

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL