problem: can notify client about new head before actual upstream made available

This commit is contained in:
Igor Artamonov
2019-07-30 00:21:31 -04:00
parent dd0c29c40c
commit 913ad6965a
6 changed files with 42 additions and 11 deletions

View File

@@ -18,6 +18,9 @@ class ChainUpstreams (
init {
head = updateHead()
observeStatus()
.distinctUntilChanged()
.subscribe { printStatus() }
}
internal fun updateHead(): EthereumHead {