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

Enable parity plus Byzantium client version check #1080

Merged

Conversation

LefterisJP
Copy link
Contributor

@LefterisJP LefterisJP commented Oct 14, 2017

Fix #1078

With the release of parity 1.7.6, we have a byzantium enabled parity client and raiden should now be able to work with it!

This PR also adds a version check for geth too.

Copy link
Contributor

@czepluch czepluch left a comment

Choose a reason for hiding this comment

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

lgtm

@LefterisJP LefterisJP merged commit c81048f into raiden-network:master Oct 14, 2017
@LefterisJP LefterisJP deleted the enable_parity_plus_client_checks branch October 14, 2017 10:22
major, minor, patch = [
int(x) for x in re.search('//v(\d)\.(\d)\.(\d)', client_version).groups()
]
if minor < 7 or (minor == 7 and patch < 6):
Copy link

Choose a reason for hiding this comment

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

i think this would be much clearer if (major, minor, patch) < (1, 7, 6):

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey thanks, you are right! Tuple comparison would make this check much clearer.

int(x) for x in re.search('/v(\d)\.(\d)\.(\d)', client_version).groups()
]
if minor < 7 or (minor == 7 and patch == 0):
print('You need Byzantium enabled geth. >= 1.7.1')
Copy link

Choose a reason for hiding this comment

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

if (major, minor, patch) < (1, 7, 1):

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.

3 participants