htlcswitch: return time result from bidirection test

This commit is contained in:
Andrey Samokhvalov
2017-06-25 20:27:36 +03:00
committed by andrew.shvv
parent 2acb2bb373
commit c13e36617c
2 changed files with 53 additions and 14 deletions

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")
}
}