problem: can notify client about new head before actual upstream made available
This commit is contained in:
@@ -18,6 +18,9 @@ class ChainUpstreams (
|
||||
|
||||
init {
|
||||
head = updateHead()
|
||||
observeStatus()
|
||||
.distinctUntilChanged()
|
||||
.subscribe { printStatus() }
|
||||
}
|
||||
|
||||
internal fun updateHead(): EthereumHead {
|
||||
|
||||
Reference in New Issue
Block a user