| 258 | } |
| 259 | |
| 260 | bool 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 | |
| 272 | static void sign_and_send_last(struct lightningd *ld, |
| 273 | struct channel *channel, |
no outgoing calls
no test coverage detected