mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
renepay: move list_node to first member of struct payment.
Results in payments having a pointer to the start of the object, which helps our memleak code. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
008bd74c93
commit
0091dc4e6d
1 changed files with 3 additions and 3 deletions
|
@ -10,6 +10,9 @@ enum payment_status {
|
|||
|
||||
|
||||
struct payment {
|
||||
/* Inside pay_plugin->payments list */
|
||||
struct list_node list;
|
||||
|
||||
struct renepay * renepay;
|
||||
|
||||
/* Chatty description of attempts. */
|
||||
|
@ -56,9 +59,6 @@ struct payment {
|
|||
|
||||
u32 final_cltv;
|
||||
|
||||
/* Inside pay_plugin->payments list */
|
||||
struct list_node list;
|
||||
|
||||
/* Description and labels, if any. */
|
||||
const char *description, *label;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue