lnwallet: lower timeout for waitForWalletSync back to 10s
This commit is contained in:
parent
a368205fc6
commit
31117e6b30
@ -1924,13 +1924,13 @@ func waitForWalletSync(r *rpctest.Harness, w *lnwallet.LightningWallet) error {
|
|||||||
bestHash, knownHash *chainhash.Hash
|
bestHash, knownHash *chainhash.Hash
|
||||||
bestHeight, knownHeight int32
|
bestHeight, knownHeight int32
|
||||||
)
|
)
|
||||||
timeout := time.After(30 * time.Second)
|
timeout := time.After(10 * time.Second)
|
||||||
for !synced {
|
for !synced {
|
||||||
// Do a short wait
|
// Do a short wait
|
||||||
select {
|
select {
|
||||||
case <-timeout:
|
case <-timeout:
|
||||||
return fmt.Errorf("timeout after 30s")
|
return fmt.Errorf("timeout after 30s")
|
||||||
case <-time.Tick(50 * time.Millisecond):
|
case <-time.Tick(100 * time.Millisecond):
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check whether the chain source of the wallet is caught up to
|
// Check whether the chain source of the wallet is caught up to
|
||||||
|
Loading…
Reference in New Issue
Block a user