| 289 | } |
| 290 | |
| 291 | bool 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 | |
| 303 | static bool commit_tx_send_finished(struct channel *channel, |
| 304 | const struct bitcoin_tx *tx, |
no outgoing calls
no test coverage detected