htlcswitch: return time result from bidirection test
This commit is contained in:
1 parent
2acb2bb373
commit
c13e36617c
2 files changed
+53
-14
No files matched your search
@@ -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