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

Fix a bug in the semver compatibility check. #380

Merged
merged 1 commit into from Nov 10, 2016

Conversation

jrick
Copy link
Member

@jrick jrick commented Nov 10, 2016

While here, improve the error returned by RPCClient.Connect to include
both the required and advertised API versions. These versions are
independent of the program and/or project's release versions, but it
should still be useful in determining whether dcrd must be downgraded
or upgraded for compatibility with this wallet software.

Add a 30 second sleep after any connection or compatibility errors
(where compatibility errors are not just incorrect API versions, but
mismatched currency networks as well). This prevents an immediate
reconnect to the server.

Fixes #379.

@jrick
Copy link
Member Author

jrick commented Nov 10, 2016

Needs a fix in dcrrpcclient first before this will work correctly.

While here, improve the error returned by RPCClient.Connect to include
both the required and advertised API versions.  These versions are
independent of the program and/or project's release versions, but it
should still be useful in determining whether dcrd must be downgraded
or upgraded for compatibility with this wallet software.

Add a 30 second sleep after any connection or compatibility errors
(where compatibility errors are not just incorrect API versions, but
mismatched currency networks as well).  This prevents an immediate
reconnect to the server.

Fixes btcsuite#379.
@jcvernaleo
Copy link
Member

Works now. OK

Copy link
Member

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@jrick jrick merged commit dba252e into decred:master Nov 10, 2016
@jrick jrick deleted the apiversionerr branch November 10, 2016 15:55
beansgum pushed a commit to beansgum/dcrwallet that referenced this pull request Jun 10, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants