|
|
@ -257,12 +257,7 @@ class AcceptBlockTest(BitcoinTestFramework):
|
|
|
|
test_node.send_message(msg_block(block_291))
|
|
|
|
test_node.send_message(msg_block(block_291))
|
|
|
|
|
|
|
|
|
|
|
|
# At this point we've sent an obviously-bogus block, wait for full processing
|
|
|
|
# At this point we've sent an obviously-bogus block, wait for full processing
|
|
|
|
# without assuming whether we will be disconnected or not
|
|
|
|
# and assume disconnection
|
|
|
|
try:
|
|
|
|
|
|
|
|
# Only wait a short while so the test doesn't take forever if we do get
|
|
|
|
|
|
|
|
# disconnected
|
|
|
|
|
|
|
|
test_node.sync_with_ping(timeout=1)
|
|
|
|
|
|
|
|
except AssertionError:
|
|
|
|
|
|
|
|
test_node.wait_for_disconnect()
|
|
|
|
test_node.wait_for_disconnect()
|
|
|
|
|
|
|
|
|
|
|
|
self.nodes[0].disconnect_p2ps()
|
|
|
|
self.nodes[0].disconnect_p2ps()
|
|
|
|