lightningd/peer_htlcs: remove remaining peer_ shims.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-02-12 20:43:04 +10:30
committed by Christian Decker
parent cf7c399cc5
commit 329e31bbe7
7 changed files with 105 additions and 96 deletions

View File

@@ -148,6 +148,16 @@ struct channel *active_channel_by_id(struct lightningd *ld,
return peer_active_channel(peer);
}
void channel_set_last_tx(struct channel *channel,
struct bitcoin_tx *tx,
const secp256k1_ecdsa_signature *sig)
{
tal_free(channel->last_sig);
channel->last_sig = tal_dup(channel, secp256k1_ecdsa_signature, sig);
tal_free(channel->last_tx);
channel->last_tx = tal_steal(channel, tx);
}
void channel_set_state(struct channel *channel,
enum peer_state old_state,
enum peer_state state)