-
Notifications
You must be signed in to change notification settings - Fork 377
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
Enable parity plus Byzantium client version check #1080
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
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): |
There was a problem hiding this comment.
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):
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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):
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.