7bff2e07a8
This commit adds a new method to the ChainNotifier interface which subscribes the caller to a continuous stream of notifications generated by new blocks added to the tip of the Bitcoin main chain. Concurrently, this method is intended to be used in order to obtain the necessary block height information to properly handle the timeout period on any pending HTLCs. A continuos stream, rather than a one-off notification is chosen in order to discourage a goroutine-per-HTLC model which would be rather wasteful. |
||
---|---|---|
.. | ||
btcdnotify | ||
chainntfs_test.go | ||
chainntfs.go | ||
log.go |