Bitcoin Bloom Filter auto updating behavior

Bitcoin Bloom Filter auto updating behavior

I'm implementing a SPV wallet. It uses BLOOM_UPDATE_ALL (1) enabled BloomFilter which consists of items below

  • All Created Addresses except change addresses
  • All UTXOs that the wallet detected

And everytime new address is created, It updates the filter via filteradd.

The problem is that It seems MarkleBlock doesn't contain some of the wallet's outgoing transactions if the block contains the wallet's UTXO spending Tx and its descendant transactions.

This is probably not related though, I'm using JSON RPC to broadcast transactions instead of TCP Bitcoin Protocol to use Bitcoin Core's validation and get error response.

My assumption is that Bitcoin Core doesn't update bloom filter until all txs in the block are checked.

My questions is

  • Is my assumption correct?
  • If so, adding future change addresses to a bloom filter is the only way to catch these transactions?

Thanks in advance.

https://ift.tt/2EOkmK7

Comments

Popular posts from this blog

Bitcoin Core errors with database block

Bitfinex & Market Synergy To Offer Institutional Calibre Cryptocurrency Connectivity