disconnect from server that returns rpc error for server.version

-the server returns this error if it thinks we are incompatible with it
This commit is contained in:
Jack Robison 2020-01-15 17:06:13 -05:00
parent f2545b98ab
commit 53eb033034
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -98,6 +98,7 @@ class ClientSession(BaseClientSession):
await self.ensure_server_version()
retry_delay = default_delay
except RPCError as e:
await self.close()
log.debug("Server error, ignoring for 1h: %s:%d -- %s", *self.server, e.message)
retry_delay = 60 * 60
except IncompatibleWalletServerError: