-
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
hbbft automatic reserved peers management #5
Comments
|
OK, after further investigation, we could manage to restart a stuck network declaring the correct reserved peers. |
same problem caused the network stuck at block 33094. priorizing the issue now. |
Implementation memo:
|
in development rust code: https://github.com/dforsten/openethereum-3.x/tree/dforsten/manage_network_access Node Management upgrade are deployed on the testnet.: https://github.com/SurfingNerd/hbbft-posdao-contracts/tree/i126-enode-management |
for gathering the information of the current used IP address, the |
4e975e3690c0ee424193e714d0ceec7aedc22b03 runs into a deadlock when connect_to_validator_core |
fixed with 51bb99c423ce758f508567c08b172a1fabd7b6e5 |
works fine, but sometimes takes some time. |
HBBFT uses direct connections between the the different nodes that cooperate to produce a block.
Open Ethereum allows to define a list of reserved peers.
This can be achieved using different ways:
for testing the current client versions,
we used the configuration file method for defining the reserved peer.
This means, dynamicly adding an Node also required to add this node's eNode to all reserved peers configuration file.
This could be automated by the hbbft engine implementation, since the hbbft engine knows the public key to interact with from the HBBFT POSDAO contracts.
A support for IP Addresses is also prepared in those contracts.
split up into 2 implementation checks:
Also, since this requires to store the Nodes IP and Port information on the blockchain, and the Validator Node is the only one that is able to write, and at most one validator must run with the Validator Node key unlocked, we can asure that the information on the blockchain is exactly our last write call to this.
Therefore we do not need expensive read operations for the current IP over and over again.
The text was updated successfully, but these errors were encountered: