mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
paymod: Add the courtesy +1 to the CLTVs to allow for a new block
This may be related to the issue #3862, however the water was muddied by it being the wrong error to return, and the node should not expect this courtesy feature to be present at all...
This commit is contained in:
parent
e92787a0e2
commit
d289ee64a1
1 changed files with 1 additions and 1 deletions
|
@ -1049,7 +1049,7 @@ static void payment_add_hop_onion_payload(struct payment *p,
|
|||
struct secret *payment_secret)
|
||||
{
|
||||
struct createonion_request *cr = p->createonion_request;
|
||||
u32 cltv = p->start_block + next->delay;
|
||||
u32 cltv = p->start_block + next->delay + 1;
|
||||
u64 msat = next->amount.millisatoshis; /* Raw: TLV payload generation*/
|
||||
struct tlv_field **fields;
|
||||
static struct short_channel_id all_zero_scid = {.u64 = 0};
|
||||
|
|
Loading…
Add table
Reference in a new issue