lnd.xprv/chainntnfs/bitcoindnotify
Wilmer Paulino 180dffd154
chainntnfs/bitcoindnotify: handle spend notification registration w/ TxNotifier
In this commit, we modify the logic within RegisterSpendNtfn for the
BitcoindNotifier to account for the recent changes made to the
TxNotifier. Since it is now able to handle spend notification
registration and dispatch, we can bypass all the current logic within
the BitcoindNotifier and interact directly with the TxNotifier instead.

The most notable changes include the following:

  1. We'll only attempt a historical rescan if the TxNotifier tells us
  so.

  2. We'll dispatch the historical rescan within the main goroutine to
  prevent WaitGroup panics, due to the asynchronous nature of the
  notifier.
2018-10-30 17:59:31 -07:00
..
bitcoind_dev.go chainntnfs/bitcoindnotify: handle spend notification registration w/ TxNotifier 2018-10-30 17:59:31 -07:00
bitcoind_test.go chainntnfs: switch debug tag to dev 2018-10-05 12:59:34 +09:00
bitcoind.go chainntnfs/bitcoindnotify: handle spend notification registration w/ TxNotifier 2018-10-30 17:59:31 -07:00
driver.go chainntnfs: add height hint caches to chain notifiers 2018-08-21 12:55:51 -04:00