From 4da227872986bbec8f7c11e75f73764e2534fd33 Mon Sep 17 00:00:00 2001 From: TheLazieR Yip Date: Sun, 14 May 2017 17:38:55 +0000 Subject: [PATCH] Force server string response for Electrum-Dash 2.6.4 client --- server/session.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/server/session.py b/server/session.py index 43cc2a3..a302c58 100644 --- a/server/session.py +++ b/server/session.py @@ -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.