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

Function invalid_last_tx

lightningd/peer_control.c:291–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291bool invalid_last_tx(const struct bitcoin_tx *tx)
292{
293 /* This problem goes back further, but was discovered just before the
294 * 0.7.1 release. */
295#ifdef COMPAT_V070
296 /* Old bug had commitment txs with no outputs; bitcoin_txid asserts. */
297 return !tx || !tx->wtx || tx->wtx->num_outputs == 0;
298#else
299 return false;
300#endif
301}
302
303static bool commit_tx_send_finished(struct channel *channel,
304 const struct bitcoin_tx *tx,

Callers 3

drop_to_chainFunction · 0.85
json_add_closed_channelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected