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

Function txfilter_match

wallet/txfilter.c:88–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86
87
88bool txfilter_match(const struct txfilter *filter, const struct bitcoin_tx *tx)
89{
90 for (size_t i = 0; i < tx->wtx->num_outputs; i++) {
91 const u8 *oscript = bitcoin_tx_output_get_script(tmpctx, tx, i);
92
93 if (!oscript)
94 continue;
95
96 if (scriptpubkeyset_get(&filter->scriptpubkeyset, oscript))
97 return true;
98 }
99 return false;
100}
101
102void outpointfilter_add(struct outpointfilter *of,
103 const struct bitcoin_outpoint *outpoint)

Callers 1

filter_block_txsFunction · 0.85

Calls 1

Tested by

no test coverage detected