| 272 | } |
| 273 | |
| 274 | bool 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 | |
| 286 | static bool commit_tx_send_finished(struct channel *channel, |
| 287 | const struct bitcoin_tx *tx, |
no outgoing calls
no test coverage detected