mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-07 15:14:21 +01:00
daemon: fix case where commit has nothing to do.
Prevents assert() triggering in queue_pkt_commit(). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -637,7 +637,8 @@ static void do_commit(struct peer *peer, struct command *jsoncmd)
|
||||
if (!peer_uncommitted_changes(peer)) {
|
||||
log_debug(peer->log, "do_commit: no changes to commit");
|
||||
if (jsoncmd)
|
||||
command_fail(jsoncmd, "no changes to commit");
|
||||
command_fail(jsoncmd, "no changes to commit");
|
||||
return;
|
||||
}
|
||||
|
||||
log_debug(peer->log, "do_commit: sending commit command");
|
||||
|
||||
Reference in New Issue
Block a user