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

Function invalid_last_tx

lightningd/peer_control.c:274–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274bool invalid_last_tx(const struct bitcoin_tx *tx)
275{
276 /* This problem goes back further, but was discovered just before the
277 * 0.7.1 release. */
278#ifdef COMPAT_V070
279 /* Old bug had commitment txs with no outputs; bitcoin_txid asserts. */
280 return !tx || !tx->wtx || tx->wtx->num_outputs == 0;
281#else
282 return false;
283#endif
284}
285
286static bool commit_tx_send_finished(struct channel *channel,
287 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