MCPcopy Create free account
hub / github.com/ElementsProject/lightning / channel_set_last_tx

Function channel_set_last_tx

lightningd/channel.c:943–951  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

941}
942
943void channel_set_last_tx(struct channel *channel,
944 struct bitcoin_tx *tx,
945 const struct bitcoin_signature *sig)
946{
947 assert(tx->chainparams);
948 channel->last_sig = *sig;
949 tal_free(channel->last_tx);
950 channel->last_tx = tal_steal(channel, tx);
951}
952
953struct channel_state_change *new_channel_state_change(const tal_t *ctx,
954 struct timeabs timestamp,

Calls 1

tal_freeFunction · 0.85

Tested by

no test coverage detected