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:
Roei Erez committed 2020-04-30 12:54:33 +03:00
1 parent cfe0babd78
commit ae2c37e043
11 files changed
+75

No files matched your search

+5
View File
@@ -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