]> Untitled Git - bdk/commit
[rpc] Filter out unrelated transactions
authorLLFourn <lloyd.fourn@gmail.com>
Thu, 24 Feb 2022 09:32:47 +0000 (20:32 +1100)
committerLLFourn <lloyd.fourn@gmail.com>
Thu, 24 Feb 2022 09:39:00 +0000 (20:39 +1100)
commit035307ef54ebc330b1760bbdd17bdab3b167cfeb
tree51d166b8dd3bf2d9b6c0560bf22dac77c37f3f5d
parentc0e75fc1a8560cdacf705ff60ef8833befd8280c
[rpc] Filter out unrelated transactions

For some reason while doing the "remove blockchain from wallet PR" I
changed the tests around in what I thought was a benign way. But it
meant (apparently) that both parties "test_sync_double_receive" were
using the same "blockchain". This meant that when the blockchain was RPC
they both imported their addresses to it and got each other's results
when syncing. This bugged out the sync and this commit fixes that.
src/blockchain/rpc.rs
src/testutils/blockchain_tests.rs