channel: move inflight + feerate methods to channel.c

Need these more accessible for next patch, which moves the next_feerate
info into listpeers
This commit is contained in:
niftynei
2021-02-19 12:44:36 -06:00
committed by Rusty Russell
parent a23277af57
commit 6c76dd338e
3 changed files with 30 additions and 15 deletions

View File

@@ -119,21 +119,6 @@ void json_add_unsaved_channel(struct json_stream *response,
json_object_end(response);
}
static struct channel_inflight *
channel_current_inflight(struct channel *channel)
{
struct channel_inflight *inflight;
/* The last inflight should always be the one in progress */
inflight = list_tail(&channel->inflights,
struct channel_inflight,
list);
if (inflight)
assert(bitcoin_txid_eq(&channel->funding_txid,
&inflight->funding->txid));
return inflight;
}
static void handle_signed_psbt(struct lightningd *ld,
struct subd *dualopend,
const struct wally_psbt *psbt,