| 86 | |
| 87 | |
| 88 | bool 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 | |
| 102 | void outpointfilter_add(struct outpointfilter *of, |
| 103 | const struct bitcoin_outpoint *outpoint) |
no test coverage detected