mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 05:43:51 +01:00
Set syncing flag to true on startup (#4506)
This commit is contained in:
parent
6dfa7683e4
commit
cdef8c01dd
@ -75,6 +75,10 @@ class BitcoinSServerMain(override val serverArgParser: ServerArgParser)(implicit
|
||||
|
||||
for {
|
||||
startedConfig <- startedConfigF
|
||||
chainApi = ChainHandler.fromDatabase()
|
||||
//on server startup we assume we are out of sync with the bitcoin network
|
||||
//so we set this flag to true.
|
||||
_ <- chainApi.setSyncing(true)
|
||||
start <- {
|
||||
nodeConf.nodeType match {
|
||||
case _: InternalImplementationNodeType =>
|
||||
@ -273,7 +277,6 @@ class BitcoinSServerMain(override val serverArgParser: ServerArgParser)(implicit
|
||||
client <- bitcoindRpcConf.clientF
|
||||
_ <- client.start()
|
||||
} yield client
|
||||
|
||||
val tuple = buildWsSource
|
||||
val wsQueue: SourceQueueWithComplete[Message] = tuple._1
|
||||
val wsSource: Source[Message, NotUsed] = tuple._2
|
||||
|
Loading…
Reference in New Issue
Block a user