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

[Infra] Create local testnet #172

Open
Arkenan opened this issue Sep 7, 2023 · 2 comments
Open

[Infra] Create local testnet #172

Arkenan opened this issue Sep 7, 2023 · 2 comments
Assignees

Comments

@Arkenan
Copy link
Collaborator

Arkenan commented Sep 7, 2023

We should have a docker-compose that allows us to have a local testnet, with an already working full node (e.g. prysm+geth) and a testing full node (e.g. lambda ethereum consensus + reth), with an empty blockchain. This would allow us to quickly test gossiping, propagation of blocks, and others in a controlled manner, and with low resources (i.e. we won't need to save the 2TB full mainnet blockchain locally). While this is not a full-proof method, it allows us to iterate quickly and is perfectly valid to test integrations.

@Arkenan Arkenan self-assigned this Oct 30, 2023
@Arkenan Arkenan removed their assignment Jan 11, 2024
@MegaRedHand
Copy link
Collaborator

We can modify these scripts from lighthouse to run our nodes instead. Some things to consider:

  • we'll need to add some new flags to our implementation (mainly set port in P2P/HTTP and import initial data from some dir)
  • they require installing some external tools (lighthouse, geth, and GNU grep+sed when on mac)

@MegaRedHand
Copy link
Collaborator

Expanding on this, we'd need to add the following functionality:

  • import a genesis state (which corresponds to phase0) and update it to the latest spec
  • flags to set all ports (P2P, discovery, Beacon API)
  • load a custom config from a yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants