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

+4
View File
@@ -931,6 +931,10 @@ func (m *mockNotifier) Start() error {
return nil
}
func (m *mockNotifier) Started() bool {
return true
}
func (m *mockNotifier) Stop() error {
return nil
}