lnd.xprv/chainntnfs/btcdnotify
Wilmer Paulino 1323c92947
chainntnfs/btcdnotify: support registration for script confirmations
In this commit, we extend the BtcdNotifier to support registering
scripts for confirmation notifications. Once the script has been
detected as confirmed within the chain, a confirmation notification will
be dispatched to through the Confirmed channel of the ConfirmationEvent
returned upon registration.

For scripts that have confirmed in the past, the `historicalConfDetails`
method has been modified to skip the txindex and go straight to scanning
the chain manually if confirmation request is for a script. When
scanning the chain, we'll determine whether the script has been
confirmed by locating the script in an output of a confirmed
transaction.

For scripts that have yet to confirm, they will be properly tracked
within the TxNotifier.
2019-01-21 13:57:43 -08:00
..
btcd_dev.go chainntnfs: initialize TxNotifier with new ReorgSafetyLimit 2019-01-11 16:58:15 -08:00
btcd_test.go chainntnfs/btcdnotify: support registration for script confirmations 2019-01-21 13:57:43 -08:00
btcd.go chainntnfs/btcdnotify: support registration for script confirmations 2019-01-21 13:57:43 -08:00
driver.go chainntnfs/btcdnotify: add chainParams parameter to btcdnotify.New 2019-01-21 13:57:43 -08:00