Force server string response for Electrum-Dash 2.6.4 client

This commit is contained in:
TheLazieR Yip 2017-05-14 17:38:55 +00:00
parent f179c67935
commit 4da2278729

View File

@ -415,6 +415,16 @@ class DashElectrumX(ElectrumX):
}
self.send_binary(self.encode_payload(payload))
def server_version(self, client_name=None, protocol_version=None):
'''Returns the server version as a string.
ForcE version string response for Electrum-Dash 2.6.4
'''
default_return = super().server_version(client_name, protocol_version)
if self.client == '2.6.4':
return '1.0'
return default_return
# Masternode command handlers
async def masternode_announce_broadcast(self, signmnb):
'''Pass through the parameters to the daemon.