From fcf696d3f3f6b7bf0b8d3f561ec7eca09bedd817 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Sun, 4 Dec 2016 10:54:22 +0900 Subject: [PATCH] Don't require 2 params for version requests --- server/protocol.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/protocol.py b/server/protocol.py index 7745678..ad24954 100644 --- a/server/protocol.py +++ b/server/protocol.py @@ -993,8 +993,9 @@ class ElectrumX(Session): async def version(self, params): '''Return the server version as a string.''' - if len(params) == 2: + if params: self.client = str(params[0]) + if len(params) > 1: self.protocol_version = params[1] return VERSION