| 140 | } |
| 141 | |
| 142 | static void rebroadcast_done(struct bitcoind *bitcoind, |
| 143 | bool success, const char *msg, |
| 144 | struct tx_rebroadcast *txrb) |
| 145 | { |
| 146 | if (!success) |
| 147 | log_debug(bitcoind->log, |
| 148 | "Expected error broadcasting tx %s: %s", |
| 149 | fmt_bitcoin_tx(tmpctx, txrb->otx->tx), msg); |
| 150 | |
| 151 | /* Last one freed calls rebroadcasts_complete */ |
| 152 | tal_free(txrb); |
| 153 | } |
| 154 | |
| 155 | /* FIXME: This is dumb. We can group txs and avoid bothering bitcoind |
| 156 | * if any one tx is in the main chain. */ |
nothing calls this directly
no test coverage detected