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:
1 parent
cfe0babd78
commit
ae2c37e043
11 files changed
+75
No files matched your search
@@ -200,6 +200,11 @@ func (m *MockNotifier) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Started checks if started
|
||||
func (m *MockNotifier) Started() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// Stop the notifier.
|
||||
func (m *MockNotifier) Stop() error {
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user