FIXME: This should be a complete check, not just a sanity check. * Perhaps that means we need a cookie from the HSM? */
| 2132 | /* FIXME: This should be a complete check, not just a sanity check. |
| 2133 | * Perhaps that means we need a cookie from the HSM? */ |
| 2134 | static bool valid_commitment_tx(struct channel *channel, |
| 2135 | const struct bitcoin_tx *tx) |
| 2136 | { |
| 2137 | /* We've had past issues where all outputs are trimmed. */ |
| 2138 | if (tx->wtx->num_outputs == 0) { |
| 2139 | channel_internal_error(channel, |
| 2140 | "channel_got_commitsig: zero output tx! %s", |
| 2141 | fmt_bitcoin_tx(tmpctx, tx)); |
| 2142 | return false; |
| 2143 | } |
| 2144 | return true; |
| 2145 | } |
| 2146 | |
| 2147 | static bool peer_save_commitsig_received(struct channel *channel, u64 commitnum, |
| 2148 | struct bitcoin_tx *tx, |
no test coverage detected