This commit is contained in:
Jack Robison 2020-01-11 00:17:32 -05:00
parent ea7056835f
commit b34f44c867
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -1374,10 +1374,11 @@ class LBRYElectrumX(SessionBase):
ptuple, client_min = util.protocol_version(
protocol_version, self.PROTOCOL_MIN, self.PROTOCOL_MAX)
if ptuple is None:
if client_min > self.PROTOCOL_MIN:
self.logger.info(f'client requested future protocol version '
f'{util.version_string(client_min)} '
f'- is your software out of date?')
# FIXME: this fills the logs
# if client_min > self.PROTOCOL_MIN:
# self.logger.info(f'client requested future protocol version '
# f'{util.version_string(client_min)} '
# f'- is your software out of date?')
self.close_after_send = True
raise RPCError(BAD_REQUEST,
f'unsupported protocol version: {protocol_version}')