mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-19 20:15:18 +02:00
Ensure chain notifier is started before accessed.
The use case comes from the RPC layer that is ready before the chain notifier which is used in the sub server.
This commit is contained in:
@@ -139,6 +139,9 @@ type ChainNotifier interface {
|
||||
// ready, and able to receive notification registrations from clients.
|
||||
Start() error
|
||||
|
||||
// Started returns true if this instance has been started, and false otherwise.
|
||||
Started() bool
|
||||
|
||||
// Stops the concrete ChainNotifier. Once stopped, the ChainNotifier
|
||||
// should disallow any future requests from potential clients.
|
||||
// Additionally, all pending client notifications will be canceled
|
||||
|
Reference in New Issue
Block a user