mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
lightningd/peer_htlcs: remove remaining peer_ shims.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
cf7c399cc5
commit
329e31bbe7
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user