mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-06 15:44:21 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user