diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-06-20 21:24:29 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-06-22 12:00:00 -0400 |
commit | fa1eac9cdb1a491d5947b6972b87833792a16fe3 (patch) | |
tree | f889edb2824334f4207f47eaf7d209903a6941ea /test/functional/feature_assumevalid.py | |
parent | ac3224c8eea9cacba23fea3a4f22a0375485dce7 (diff) |
[qa] mininode: Expose connection state through is_connected
Diffstat (limited to 'test/functional/feature_assumevalid.py')
-rwxr-xr-x | test/functional/feature_assumevalid.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/feature_assumevalid.py b/test/functional/feature_assumevalid.py index 5a09142412..a925c70783 100755 --- a/test/functional/feature_assumevalid.py +++ b/test/functional/feature_assumevalid.py @@ -68,12 +68,12 @@ class AssumeValidTest(BitcoinTestFramework): def send_blocks_until_disconnected(self, p2p_conn): """Keep sending blocks to the node until we're disconnected.""" for i in range(len(self.blocks)): - if p2p_conn.state != "connected": + if not p2p_conn.is_connected: break try: p2p_conn.send_message(msg_block(self.blocks[i])) except IOError as e: - assert str(e) == 'Not connected, no pushbuf' + assert not p2p_conn.is_connected break def assert_blockchain_height(self, node, height): |