mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 16:44:20 +01:00
lightning: fix reverse test causing crash when paying to no owner.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -315,7 +315,7 @@ static void json_sendpay(struct command *cmd,
|
|||||||
|
|
||||||
if (!peer->owner || !streq(peer->owner->name, "lightningd_channel")) {
|
if (!peer->owner || !streq(peer->owner->name, "lightningd_channel")) {
|
||||||
command_fail(cmd, "first peer in %s",
|
command_fail(cmd, "first peer in %s",
|
||||||
peer->owner ? "limbo" : peer->owner->name);
|
peer->owner ? peer->owner->name : "limbo");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user