mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 04:02:46 +02:00
htlcswitch: return time result from bidirection test
This commit is contained in:
committed by
andrew.shvv
parent
2acb2bb373
commit
c13e36617c
@@ -425,7 +425,7 @@ func (n *threeHopNetwork) makePayment(sendingPeer, receivingPeer Peer,
|
||||
select {
|
||||
case err := <-errChan:
|
||||
return invoice, err
|
||||
case <-time.After(20 * time.Second):
|
||||
case <-time.After(50 * time.Second):
|
||||
return invoice, errors.New("htlc was not settled in time")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user