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

Function invalid_last_tx

lightningd/peer_control.c:260–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

258}
259
260bool invalid_last_tx(const struct bitcoin_tx *tx)
261{
262 /* This problem goes back further, but was discovered just before the
263 * 0.7.1 release. */
264#ifdef COMPAT_V070
265 /* Old bug had commitment txs with no outputs; bitcoin_txid asserts. */
266 return tx->wtx->num_outputs == 0;
267#else
268 return false;
269#endif
270}
271
272static void sign_and_send_last(struct lightningd *ld,
273 struct channel *channel,

Callers 3

drop_to_chainFunction · 0.85
json_add_channelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected