Skip to content

Commit 6f50b27

Browse files
committed
loopd: increase withdrawal manager start timeout
This is needed for neutrino.
1 parent 3ed8c7a commit 6f50b27

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

loopd/daemon.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,10 +922,15 @@ func (d *Daemon) initialize(withMacaroonService bool) error {
922922
}
923923
}()
924924

925+
// We need a higher timeout here, because withdrawalManager
926+
// publishes transactions and each PublishTransaction call can
927+
// wait for getting inv messages from a peer (neutrino).
928+
const withdrawalManagerTimeout = time.Minute
929+
925930
// Wait for the static address withdrawal manager to be ready
926931
// before starting the grpc server.
927932
timeOutCtx, cancel := context.WithTimeout(
928-
d.mainCtx, initManagerTimeout,
933+
d.mainCtx, withdrawalManagerTimeout,
929934
)
930935
select {
931936
case <-timeOutCtx.Done():

0 commit comments

Comments
 (0)