lnd/chainntnfs/bitcoindnotify
Wilmer Paulino 1a41e23bf4
chainntnfs/bitcoindnotify: support registration for script confirmations
In this commit, we extend the BitcoindNotifier 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
..
bitcoind_dev.go chainntnfs: initialize TxNotifier with new ReorgSafetyLimit 2019-01-11 16:58:15 -08:00
bitcoind_test.go chainntnfs/bitcoindnotify: support registration for script confirmations 2019-01-21 13:57:43 -08:00
bitcoind.go chainntnfs/bitcoindnotify: support registration for script confirmations 2019-01-21 13:57:43 -08:00
driver.go chainntnfs/bitcoindnotify: add chainParams parameter to bitcoindnotify.New 2019-01-21 13:57:43 -08:00