htlcswitch: return time result from bidirection test

This commit is contained in:
Andrey Samokhvalov authored and andrew.shvv committed 2017-06-26 20:26:27 +03:00
1 parent 2acb2bb373
commit c13e36617c
2 files changed
+53 -14

No files matched your search

+1 -1
View File
@@ -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")
}
}