pay: Inherit payment label to all children

This commit is contained in:
Christian Decker 2020-08-11 16:41:50 +02:00
parent 0dcd974d97
commit 894c886bdd

View file

@ -36,6 +36,7 @@ struct payment *payment_new(tal_t *ctx, struct command *cmd,
tal_arr_expand(&parent->children, p); tal_arr_expand(&parent->children, p);
p->destination = parent->destination; p->destination = parent->destination;
p->amount = parent->amount; p->amount = parent->amount;
p->label = parent->label;
p->payment_hash = parent->payment_hash; p->payment_hash = parent->payment_hash;
p->partid = payment_root(p->parent)->next_partid++; p->partid = payment_root(p->parent)->next_partid++;
p->plugin = parent->plugin; p->plugin = parent->plugin;