Browse Source

Force server string response for Electrum-Dash 2.6.4 client

master
TheLazieR Yip 8 years ago
parent
commit
4da2278729
  1. 10
      server/session.py

10
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.

Loading…
Cancel
Save