MCPcopy Create free account
hub / github.com/ElementsProject/lightning / rebroadcast_done

Function rebroadcast_done

lightningd/chaintopology.c:142–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142static 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. */

Callers

nothing calls this directly

Calls 2

fmt_bitcoin_txFunction · 0.85
tal_freeFunction · 0.85

Tested by

no test coverage detected