[tests] Explicitly disallow support for p2p versions below 60001
The mininode module includes code to support p2p versions below
60001. However, the test_framework does not support versions
of Bitcoin Core before V0.13.0. Remove code supporting
p2p versions before 60001 (which has never been run).
MY_RELAY=1# from version 70001 onwards, fRelay should be appended to version messages (BIP37)
@ -1423,11 +1424,8 @@ class NodeConnCB():
@@ -1423,11 +1424,8 @@ class NodeConnCB():
self.verack_received=True
defon_version(self,conn,message):
ifmessage.nVersion>=209:
conn.send_message(msg_verack())
conn.ver_send=min(MY_VERSION,message.nVersion)
ifmessage.nVersion<209:
conn.ver_recv=conn.ver_send
assertmessage.nVersion>=MIN_VERSION_SUPPORTED,"Version {} received. Test framework only supports versions greater than {}".format(message.nVersion,MIN_VERSION_SUPPORTED)
conn.send_message(msg_verack())
conn.nServices=message.nServices
# Connection helper methods
@ -1609,40 +1607,27 @@ class NodeConn(asyncore.dispatcher):
@@ -1609,40 +1607,27 @@ class NodeConn(asyncore.dispatcher):