mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
* silence all golint complaints except for those caused by generated gRPC code in rpc.pb.go, as well as the OP_CHECKSEQUENCEVERIFY opcode in script_utils.go
28 lines
690 B
Go
28 lines
690 B
Go
package chainntnfs
|
|
|
|
import "github.com/btcsuite/btcd/wire"
|
|
|
|
// TODO(roasbeef): finish
|
|
// * multiple backends for interface
|
|
// * btcd - websockets
|
|
// * core - rpc polling or ZeroMQ
|
|
// * direct p2p
|
|
// * random bitcoin API?
|
|
// * electrum?
|
|
// * SPV bloomfilter
|
|
// * other stuff maybe...
|
|
|
|
// ChainNotifier ...
|
|
type ChainNotifier interface {
|
|
RegisterConfirmationsNotification(txid *wire.ShaHash, numConfs uint32, trigger *NotificationTrigger) error
|
|
RegisterSpendNotification(outpoint *wire.OutPoint, trigger *NotificationTrigger) error
|
|
|
|
Start() error
|
|
Stop() error
|
|
}
|
|
|
|
// NotificationTrigger ...
|
|
type NotificationTrigger struct {
|
|
TriggerChan chan struct{}
|
|
Callback func()
|
|
}
|