mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
pay: fix delpay to actually delete.
It works for the trivial case, where groupid and partid are the same, but silently deletes nothing in the other cases (or worse, deletes the wrong entry!). See: #5835 Changelog-Fixed: `delpay`: actually delete the specified payment (mainly found by `autoclean`). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Alex Myers
parent
38d90b2505
commit
355a7ae827
@@ -1702,7 +1702,7 @@ static struct command_result *json_delpay(struct command *cmd,
|
||||
"No payment for that payment_hash with that partid and groupid");
|
||||
}
|
||||
|
||||
wallet_payment_delete(cmd->ld->wallet, payment_hash, partid, groupid);
|
||||
wallet_payment_delete(cmd->ld->wallet, payment_hash, groupid, partid);
|
||||
|
||||
response = json_stream_success(cmd);
|
||||
json_array_start(response, "payments");
|
||||
|
||||
Reference in New Issue
Block a user