mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
routerrpc: fix wrong error messages
when payment_hash or final_cltv_delta and payment_request was set, the error message showed that the parameters shouldn't be set with dest instead of payment_request [skip ci]
This commit is contained in:
parent
71b23a2c54
commit
59b215fe09
1 changed files with 2 additions and 2 deletions
|
@ -661,11 +661,11 @@ func (r *RouterBackend) extractIntentFromSendRequest(
|
|||
"cannot appear together")
|
||||
|
||||
case len(rpcPayReq.PaymentHash) > 0:
|
||||
return nil, errors.New("dest and payment_hash " +
|
||||
return nil, errors.New("payment_hash and payment_request " +
|
||||
"cannot appear together")
|
||||
|
||||
case rpcPayReq.FinalCltvDelta != 0:
|
||||
return nil, errors.New("dest and final_cltv_delta " +
|
||||
return nil, errors.New("final_cltv_delta and payment_request " +
|
||||
"cannot appear together")
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue