mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user