diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-03-31 00:10:32 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-03-31 11:14:48 +0200 |
commit | 00559229588feb19de2a0cb7506f70c483a1f433 (patch) | |
tree | 69b066f16f4ac7b312c123c91ae2613d987d722e /test/functional/p2p_filter.py | |
parent | 7e1fc03b185d89f21da1bee2f8b7900d65745b30 (diff) | |
download | bitcoin-00559229588feb19de2a0cb7506f70c483a1f433.tar.xz |
test: add BIP37 'filterclear' test to p2p_filter.py
Diffstat (limited to 'test/functional/p2p_filter.py')
-rwxr-xr-x | test/functional/p2p_filter.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/p2p_filter.py b/test/functional/p2p_filter.py index a22ee91483..ad7a9dcf6e 100755 --- a/test/functional/p2p_filter.py +++ b/test/functional/p2p_filter.py @@ -11,6 +11,7 @@ from test_framework.messages import ( MSG_FILTERED_BLOCK, msg_getdata, msg_filterload, + msg_filterclear, ) from test_framework.mininode import ( P2PInterface, @@ -97,6 +98,13 @@ class FilterTest(BitcoinTestFramework): filter_node.wait_for_tx(txid) assert not filter_node.merkleblock_received + self.log.info('Check that after deleting filter all txs get relayed again') + filter_node.send_message(msg_filterclear()) + filter_node.sync_with_ping() + for _ in range(5): + txid = self.nodes[0].sendtoaddress(self.nodes[0].getnewaddress(), 7) + filter_node.wait_for_tx(txid) + if __name__ == '__main__': FilterTest().main() |