mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-03-03 10:46:42 +01:00
Fix race condition on DLC node startup wrt to tor (#4335)
This commit is contained in:
parent
63e8d76dfc
commit
272f31aeaa
1 changed files with 8 additions and 3 deletions
|
@ -178,9 +178,14 @@ class BitcoinSServerMain(override val serverArgParser: ServerArgParser)(implicit
|
|||
}
|
||||
|
||||
val startedWalletF = configuredWalletF.flatMap(_.start())
|
||||
val startedDLCNodeF = dlcNodeF
|
||||
.flatMap(_.start())
|
||||
.flatMap(_ => dlcNodeF)
|
||||
|
||||
val startedDLCNodeF = {
|
||||
for {
|
||||
dlcNode <- dlcNodeF
|
||||
_ <- startedTorConfigF
|
||||
_ <- dlcNode.start()
|
||||
} yield dlcNode
|
||||
}
|
||||
|
||||
val chainApi = ChainHandler.fromDatabase()
|
||||
//start our http server now that we are synced
|
||||
|
|
Loading…
Add table
Reference in a new issue