diff options
author | Jon Atack <jon@atack.com> | 2020-04-01 15:37:20 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-04-01 17:30:02 +0200 |
commit | 6112a209828c43930f677c45461339cdf68a56e9 (patch) | |
tree | 137ce782cfbfe549a555e0fb8de171a9fd01321a /test/functional/p2p_filter.py | |
parent | b97e3a73498bb49e81039e90e9cb5acdca9123cc (diff) | |
download | bitcoin-6112a209828c43930f677c45461339cdf68a56e9.tar.xz |
test: replace (send_message + sync_with_ping) with send_and_ping
Diffstat (limited to 'test/functional/p2p_filter.py')
-rwxr-xr-x | test/functional/p2p_filter.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/p2p_filter.py b/test/functional/p2p_filter.py index ad7a9dcf6e..2940542e5e 100755 --- a/test/functional/p2p_filter.py +++ b/test/functional/p2p_filter.py @@ -64,8 +64,7 @@ class FilterTest(BitcoinTestFramework): def run_test(self): self.log.info('Add filtered P2P connection to the node') filter_node = self.nodes[0].add_p2p_connection(FilterNode()) - filter_node.send_message(filter_node.watch_filter_init) - filter_node.sync_with_ping() + filter_node.send_and_ping(filter_node.watch_filter_init) filter_address = self.nodes[0].decodescript(filter_node.watch_script_pubkey)['addresses'][0] self.log.info('Check that we receive merkleblock and tx if the filter matches a tx in a block') @@ -99,8 +98,7 @@ class FilterTest(BitcoinTestFramework): 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() + filter_node.send_and_ping(msg_filterclear()) for _ in range(5): txid = self.nodes[0].sendtoaddress(self.nodes[0].getnewaddress(), 7) filter_node.wait_for_tx(txid) |