mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 00:24:19 +01:00
lightningd/subd: support multiple fds sent at once in normal messages.
Rather than returning SUBD_NEED_FD, callback returns how many fds it needs. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -604,9 +604,9 @@ static bool opening_got_hsm_funding_sig(struct subd *hsm, const u8 *resp,
|
||||
return true;
|
||||
}
|
||||
|
||||
static enum subd_msg_ret update_channel_status(struct subd *sd,
|
||||
const u8 *msg,
|
||||
int unused)
|
||||
static size_t update_channel_status(struct subd *sd,
|
||||
const u8 *msg,
|
||||
const int *unused)
|
||||
{
|
||||
enum channel_wire_type t = fromwire_peektype(msg);
|
||||
|
||||
@@ -629,7 +629,7 @@ static enum subd_msg_ret update_channel_status(struct subd *sd,
|
||||
break;
|
||||
}
|
||||
|
||||
return SUBD_COMPLETE;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* opening is done, start lightningd_channel for peer. */
|
||||
|
||||
Reference in New Issue
Block a user