Skip to content

Commit 1a8202b

Browse files
committed
splice: Let RPC stfu take time
Before we would fail the RPC stfu request if there were pending changes preventing immediate stfu. Now we relax the policy to allow eventual stfu once the pending changes complete.
1 parent 5d0914b commit 1a8202b

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

channeld/channeld.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5061,15 +5061,9 @@ static void handle_stfu_req(struct peer *peer, const u8 *inmsg)
50615061
peer->stfu_initiator = LOCAL;
50625062
peer->want_stfu = true;
50635063

5064-
if (!maybe_send_stfu(peer)) {
5065-
msg = towire_channeld_splice_state_error(NULL, tal_fmt(tmpctx,
5066-
"Pending updates"
5067-
" prevent us from STFU"
5068-
" mode at this"
5069-
" time."));
5070-
wire_sync_write(MASTER_FD, take(msg));
5071-
return;
5072-
}
5064+
/* If the `stfu` cant be sent now it will be sent when the current
5065+
* pending actions are completed. */
5066+
maybe_send_stfu(peer);
50735067
}
50745068

50755069
static void handle_abort_req(struct peer *peer, const u8 *inmsg)

0 commit comments

Comments
 (0)