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

Function bwatch_process_block_txs

plugins/bwatch/bwatch_scanner.c:226–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void bwatch_process_block_txs(struct command *cmd,
227 struct bwatch *bwatch,
228 const struct bitcoin_block *block,
229 u32 blockheight,
230 const struct bitcoin_blkid *blockhash,
231 const struct watch *w)
232{
233 for (size_t i = 0; i < tal_count(block->tx); i++) {
234 if (w)
235 check_tx_for_single_watch(cmd, w, block->tx[i],
236 blockheight, blockhash, i);
237 else
238 check_tx_against_all_watches(cmd, bwatch, block->tx[i],
239 blockheight, blockhash, i);
240 }
241
242 bwatch_check_scid_watches(cmd, bwatch, block, blockheight, w);
243}
244
245/* Fire depth notifications for every active blockdepth watch.
246 * A watch with start_block > new_height is stale: its confirming block

Callers 2

handle_blockFunction · 0.85
rescan_block_doneFunction · 0.85

Calls 3

Tested by

no test coverage detected