Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server.version call to electrum used as a keep alive #18

Closed
nkuba opened this issue May 23, 2019 · 2 comments
Closed

server.version call to electrum used as a keep alive #18

nkuba opened this issue May 23, 2019 · 2 comments

Comments

@nkuba
Copy link

nkuba commented May 23, 2019

Currently a server.version method call to electrum server is used as a keep alive:

vers = await self.RPC('server.version')

According to the electrum protocol server.version is allowed to be called only once:

Identify the client to the server and negotiate the protocol version. Only the first server.version() message is accepted.

https://electrumx.readthedocs.io/en/latest/protocol-methods.html#server-version

Keep alive can be achieved with server.ping method:
https://electrumx.readthedocs.io/en/latest/protocol-methods.html#server-ping

@xavierfiechter
Copy link
Contributor

This is fixed since 0.8.1.

@doc-hex
Copy link
Contributor

doc-hex commented Jan 10, 2023

yup, good point. closing issue

@doc-hex doc-hex closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants