-
Notifications
You must be signed in to change notification settings - Fork 5
Implement PeerNetworkInterface #339
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
base: main
Are you sure you want to change the base?
Conversation
|
I'd like to run this on my computer, if that's possible. Can you give some detailed instructions in the PR for how to do that, please? |
Sorry for the delay, I missed this yesterday. I just attached setup instructions. |
Thanks. And how will I know that it's working? That it prints certain log messages? You mention killing and reviving the other nodes. Can you briefly describe that sequence and what I should expect? |
Yep! The main method I used to test fallover was starting from the origin (by setting
There's other points it can start from too:
|
Fixes #204
Implements a
peer-network-interfacemodule. This module runs the ChainSync and BlockFetch protocols against a small set of explicitly-configured peers. It follows the fork defined by the first peer in the list, but will switch to other forks if that peer disconnects.Testing strategy was a combination of unit tests of the
ChainStatestruct, and manual testing against three preview nodes on my laptop which I randomly killed and revived.Includes a small architecture diagram: https://github.com/input-output-hk/acropolis/blob/sg/peer-network-interface/modules/peer_network_interface/NOTES.md
Manual testing
To test it, you can run the omnibus process using the "local" configuration:
cd processes/omnibus cargo run -- --config omnibus-local.tomlThat configuration tries connecting to three Cardano nodes running against the
previewenvironment, on ports 3001 3002 and 3003. To create such a setup, you can use this gist https://gist.github.com/SupernaviX/16627499dae71092abeac96434e96817