This adds functionality to update a bloom filter based on the outputs from a tx. If the scriptPubKey of any output is relevant (i.e., any of its data elements are contained in the bloom filter) then an outpoint (comprising the txid and vout) is inserted into the bloom filter. This avoids round-tripping as a result of missing relevant txs (e.g. a tx that spends a previous output).
Tests are based on the bloom_test.cpp from Bitcoin-core but with different transactions as the sigs used in those are high-S which cause decodeStrictSig to fail.
This adds functionality to update a bloom filter based on the outputs from a tx. If the scriptPubKey of any output is relevant (i.e., any of its data elements are contained in the bloom filter) then an outpoint (comprising the txid and vout) is inserted into the bloom filter. This avoids round-tripping as a result of missing relevant txs (e.g. a tx that spends a previous output).
Tests are based on the
bloom_test.cpp
from Bitcoin-core but with different transactions as the sigs used in those are high-S which causedecodeStrictSig
to fail.