mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 22:45:27 +01:00
lightningd: peer_start_channeld always returns true; make it void.
It is always true, and we always ignore it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
7c856470e2
commit
74568a1c50
3 changed files with 4 additions and 6 deletions
|
@ -169,7 +169,7 @@ static unsigned channel_msg(struct subd *sd, const u8 *msg, const int *fds)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool peer_start_channeld(struct channel *channel,
|
void peer_start_channeld(struct channel *channel,
|
||||||
const struct crypto_state *cs,
|
const struct crypto_state *cs,
|
||||||
int peer_fd, int gossip_fd,
|
int peer_fd, int gossip_fd,
|
||||||
const u8 *funding_signed,
|
const u8 *funding_signed,
|
||||||
|
@ -213,7 +213,7 @@ bool peer_start_channeld(struct channel *channel,
|
||||||
log_unusual(channel->log, "Could not subdaemon channel: %s",
|
log_unusual(channel->log, "Could not subdaemon channel: %s",
|
||||||
strerror(errno));
|
strerror(errno));
|
||||||
channel_fail_transient(channel, "Failed to subdaemon channel");
|
channel_fail_transient(channel, "Failed to subdaemon channel");
|
||||||
return true;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
peer_htlcs(tmpctx, channel, &htlcs, &htlc_states, &fulfilled_htlcs,
|
peer_htlcs(tmpctx, channel, &htlcs, &htlc_states, &fulfilled_htlcs,
|
||||||
|
@ -288,8 +288,6 @@ bool peer_start_channeld(struct channel *channel,
|
||||||
|
|
||||||
/* We don't expect a response: we are triggered by funding_depth_cb. */
|
/* We don't expect a response: we are triggered by funding_depth_cb. */
|
||||||
subd_send_msg(channel->owner, take(initmsg));
|
subd_send_msg(channel->owner, take(initmsg));
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool channel_tell_funding_locked(struct lightningd *ld,
|
bool channel_tell_funding_locked(struct lightningd *ld,
|
||||||
|
|
|
@ -8,7 +8,7 @@ struct channel;
|
||||||
struct crypto_state;
|
struct crypto_state;
|
||||||
struct lightningd;
|
struct lightningd;
|
||||||
|
|
||||||
bool peer_start_channeld(struct channel *channel,
|
void peer_start_channeld(struct channel *channel,
|
||||||
const struct crypto_state *cs,
|
const struct crypto_state *cs,
|
||||||
int peer_fd, int gossip_fd,
|
int peer_fd, int gossip_fd,
|
||||||
const u8 *funding_signed,
|
const u8 *funding_signed,
|
||||||
|
|
|
@ -289,7 +289,7 @@ bool param(struct command *cmd UNNEEDED, const char *buffer UNNEEDED,
|
||||||
const jsmntok_t params[] UNNEEDED, ...)
|
const jsmntok_t params[] UNNEEDED, ...)
|
||||||
{ fprintf(stderr, "param called!\n"); abort(); }
|
{ fprintf(stderr, "param called!\n"); abort(); }
|
||||||
/* Generated stub for peer_start_channeld */
|
/* Generated stub for peer_start_channeld */
|
||||||
bool peer_start_channeld(struct channel *channel UNNEEDED,
|
void peer_start_channeld(struct channel *channel UNNEEDED,
|
||||||
const struct crypto_state *cs UNNEEDED,
|
const struct crypto_state *cs UNNEEDED,
|
||||||
int peer_fd UNNEEDED, int gossip_fd UNNEEDED,
|
int peer_fd UNNEEDED, int gossip_fd UNNEEDED,
|
||||||
const u8 *funding_signed UNNEEDED,
|
const u8 *funding_signed UNNEEDED,
|
||||||
|
|
Loading…
Add table
Reference in a new issue