lnd.xprv/chainntfs/btcdnotify/source.go
Olaoluwa Osuntokun 5f705be63b chainntfs: introduce ChainConnection interface to avoid import cycle and for future tests
* Looks rather hack atm. Put in place so progress can be had with
lnwallet before notes is finished.
2016-01-14 23:58:04 -08:00

15 lines
412 B
Go

package btcdnotify
import (
"github.com/btcsuite/btcwallet/chain"
"github.com/btcsuite/btcwallet/wtxmgr"
)
// ChainConnection...
// Required in order to avoid an import cycle, and do aide in testing.
type ChainConnection interface {
ListenConnectedBlocks() (<-chan wtxmgr.BlockMeta, error)
ListenDisconnectedBlocks() (<-chan wtxmgr.BlockMeta, error)
ListenRelevantTxs() (<-chan chain.RelevantTx, error)
}