Browse Source

df: move tx_role functions (used in next patch)

ppa-prep
niftynei 4 years ago
committed by neil saitug
parent
commit
e99335e5b3
  1. 26
      channeld/channeld.c

26
channeld/channeld.c

@ -259,7 +259,19 @@ static const u8 *hsm_req(const tal_t *ctx, const u8 *req TAKES)
return msg; return msg;
} }
static enum tx_role their_tx_role(const struct peer *peer)
{
return peer->channel->opener == LOCAL ?
TX_ACCEPTER : TX_INITIATOR;
}
#if EXPERIMENTAL_FEATURES #if EXPERIMENTAL_FEATURES
static enum tx_role our_tx_role(const struct peer *peer)
{
return peer->channel->opener == LOCAL ?
TX_INITIATOR : TX_ACCEPTER;
}
static const u8 *psbt_to_tx_sigs_msg(const tal_t *ctx, static const u8 *psbt_to_tx_sigs_msg(const tal_t *ctx,
struct channel *channel, struct channel *channel,
const struct wally_psbt *psbt) const struct wally_psbt *psbt)
@ -518,20 +530,6 @@ static void announce_channel(struct peer *peer)
send_channel_update(peer, 0); send_channel_update(peer, 0);
} }
#if EXPERIMENTAL_FEATURES
static enum tx_role our_tx_role(const struct peer *peer)
{
return peer->channel->opener == LOCAL ?
TX_INITIATOR : TX_ACCEPTER;
}
#endif
static enum tx_role their_tx_role(const struct peer *peer)
{
return peer->channel->opener == LOCAL ?
TX_ACCEPTER : TX_INITIATOR;
}
static void channel_announcement_negotiate(struct peer *peer) static void channel_announcement_negotiate(struct peer *peer)
{ {
/* Don't do any announcement work if we're shutting down */ /* Don't do any announcement work if we're shutting down */

Loading…
Cancel
Save