Closed philipp1992 closed 2 years ago
Are all the nodes synced to the main chain? This happens if one node is behind and doesn't know what the proper block height is.
I see you're on testnet, where there was a block storm (several blocks a minute) over the past few days. This is likely the culprit, if both nodes are fully synced, you won't encounter that issue.
Will re-open if we have evidence otherwise.
Terms: (channeldb.ContractTerm) amt=1000 mSAT, expiry=2h0m0s, final_cltv_delta=160,
How are you paying the invoice? I see you have a custom final CLTV delta set, higher than the actual amount.
these two commands were executed back to back within 5 seconds with the same pay_request and the first one failed with the "expiry too soon" error from above, while the second succeeded.
payment request was created with lncli addinvoice --amt 100000
philipp@ubuntu:~/.local/share/Stakenet/stakenet-wallet-testnet/lnd/ltc$ lncli --network=testnet --rpcserver=localhost:20001 --macaroonpath=./admin.macaroon --tlscertpath=./tls.cert payinvoice $INVOICE -f --json
{
"payment_hash": "f7b465ffce94bfd9fa6a60710f71984bfba2c048df9f226ac0decfef5196445e",
"value": "100000",
"creation_date": "1647643915",
"fee": "0",
"payment_preimage": "0000000000000000000000000000000000000000000000000000000000000000",
"value_sat": "100000",
"value_msat": "100000000",
"payment_request": "lntltc1m1p3r2r86pp5776xtl7wjjlan7n2vpcs7uvcf0a69szgm70jy6kqmm8775vkg30qdqqcqzjqxqrrsssp5af6kyj79xn7rgaktnxygewp2jw6mu58qxc82f5rwysfff3n9875s9qyyssqru6cw2xrruusvuyv33fedw75lx02vjwdlfp7rnmnux2c5w3pnx43chj7lepzd3w0u6tymp46y0snhv89hz3a7my5cnckvzvcd8t2tyspftnyzz",
"status": "FAILED",
"fee_sat": "0",
"fee_msat": "0",
"creation_time_ns": "1647643915632593076",
"htlcs": [
{
"attempt_id": "20025",
"status": "FAILED",
"route": {
"total_time_lock": 2253507,
"total_fees": "0",
"total_amt": "100000",
"hops": [
{
"chan_id": "2464825793524531200",
"chan_capacity": "42888721",
"amt_to_forward": "100000",
"fee": "0",
"expiry": 2253507,
"amt_to_forward_msat": "100000000",
"fee_msat": "0",
"pub_key": "037b321ba397e96f2733c9bb49cfe447c8054306194f510a156630d45a598c1f67",
"tlv_payload": true,
"mpp_record": {
"payment_addr": "ea75624bc534fc3476cb99888cb82a93b5be50e0360ea4d06e241294c6653fa9",
"total_amt_msat": "100000000"
},
"amp_record": null,
"custom_records": {
}
}
],
"total_fees_msat": "0",
"total_amt_msat": "100000000"
},
"attempt_time_ns": "1647643915645426918",
"resolve_time_ns": "1647643916021317300",
"failure": {
"code": "INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS",
"channel_update": null,
"htlc_msat": "0",
"onion_sha_256": null,
"cltv_expiry": 0,
"flags": 0,
"failure_source_index": 1,
"height": 2252938
},
"preimage": null
}
],
"payment_index": "123",
"failure_reason": "FAILURE_REASON_INCORRECT_PAYMENT_DETAILS"
}
[lncli] FAILED
philipp@ubuntu:~/.local/share/Stakenet/stakenet-wallet-testnet/lnd/ltc$ lncli --network=testnet --rpcserver=localhost:20001 --macaroonpath=./admin.macaroon --tlscertpath=./tls.cert payinvoice $INVOICE -f --json
{
"payment_hash": "f7b465ffce94bfd9fa6a60710f71984bfba2c048df9f226ac0decfef5196445e",
"value": "100000",
"creation_date": "1647643929",
"fee": "0",
"payment_preimage": "34f2011215829800ee0cb9be4599f316fd19dae4b9b42bfeafacfa6dde0ba629",
"value_sat": "100000",
"value_msat": "100000000",
"payment_request": "lntltc1m1p3r2r86pp5776xtl7wjjlan7n2vpcs7uvcf0a69szgm70jy6kqmm8775vkg30qdqqcqzjqxqrrsssp5af6kyj79xn7rgaktnxygewp2jw6mu58qxc82f5rwysfff3n9875s9qyyssqru6cw2xrruusvuyv33fedw75lx02vjwdlfp7rnmnux2c5w3pnx43chj7lepzd3w0u6tymp46y0snhv89hz3a7my5cnckvzvcd8t2tyspftnyzz",
"status": "SUCCEEDED",
"fee_sat": "0",
"fee_msat": "0",
"creation_time_ns": "1647643929609239014",
"htlcs": [
{
"attempt_id": "20026",
"status": "SUCCEEDED",
"route": {
"total_time_lock": 2253515,
"total_fees": "0",
"total_amt": "100000",
"hops": [
{
"chan_id": "2464825793524531200",
"chan_capacity": "42888721",
"amt_to_forward": "100000",
"fee": "0",
"expiry": 2253515,
"amt_to_forward_msat": "100000000",
"fee_msat": "0",
"pub_key": "037b321ba397e96f2733c9bb49cfe447c8054306194f510a156630d45a598c1f67",
"tlv_payload": true,
"mpp_record": {
"payment_addr": "ea75624bc534fc3476cb99888cb82a93b5be50e0360ea4d06e241294c6653fa9",
"total_amt_msat": "100000000"
},
"amp_record": null,
"custom_records": {
}
}
],
"total_fees_msat": "0",
"total_amt_msat": "100000000"
},
"attempt_time_ns": "1647643929622230564",
"resolve_time_ns": "1647643929889771889",
"failure": null,
"preimage": "34f2011215829800ee0cb9be4599f316fd19dae4b9b42bfeafacfa6dde0ba629"
}
],
"payment_index": "124",
"failure_reason": "FAILURE_REASON_NONE"
}
Background
Payee LND --- LND Payer
Sending an invoice like the following:
When trying to pay for that invoice, the payer gets an "incorrect payment details" error. On the payee lnd side, i get the following log:
LND parameters: