-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add learner nodes and hostname support #1
Conversation
easeev
commented
Dec 23, 2019
- Add learner nodes support Quorum raft upgrade v3.3.13 Consensys/quorum#887
- Replace IP with hostname DNS support for static nodes and discovery Consensys/quorum#885
web3quorum/utils.py
Outdated
@@ -11,9 +11,9 @@ def enode_to_raft_id(w3, enode: str) -> int: | |||
return int(node.get('raftId')) | |||
|
|||
|
|||
def ip_to_raft_id(w3, ip: str) -> int: | |||
"""Resolves IP into raft Id.""" | |||
def ip_to_raft_id(w3, hostname: str) -> int: |
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.
probably you wanted to rename this accroding to https://github.com/chainstack/web3quorum/pull/1/files#diff-9767a019c97052bd346eb4c8728e7022R22
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.
or add separated function
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.
strange, it seems like this function is used only in tests. So, I suppose, we can delete them both (test and function)
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.
Good catch, thanks!
It is used in https://github.com/chainstack/orchestrator/blob/master/server/networks/backends/quorum.py#L12