| 301 | } |
| 302 | |
| 303 | static bool commit_tx_send_finished(struct channel *channel, |
| 304 | const struct bitcoin_tx *tx, |
| 305 | bool success, |
| 306 | const char *err, |
| 307 | struct anchor_details *adet) |
| 308 | { |
| 309 | struct bitcoin_txid txid; |
| 310 | |
| 311 | bitcoin_txid(tx, &txid); |
| 312 | |
| 313 | /* If it's already mined, stop retransmitting, stop boosting. */ |
| 314 | if (wallet_transaction_height(channel->peer->ld->wallet, &txid) != 0) { |
| 315 | tal_free(adet); |
| 316 | return true; |
| 317 | } |
| 318 | |
| 319 | /* Boost (if possible), and keep trying! */ |
| 320 | commit_tx_boost(channel, adet, success); |
| 321 | return false; |
| 322 | } |
| 323 | |
| 324 | static struct bitcoin_tx *sign_and_send_last(const tal_t *ctx, |
| 325 | struct lightningd *ld, |
nothing calls this directly
no test coverage detected