-
Notifications
You must be signed in to change notification settings - Fork 725
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
merge: kiln v2 updates #1750
Merged
Merged
merge: kiln v2 updates #1750
Changes from 12 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
48c806c
update random to prevRandao
ryanio 915e9e5
improve optimistic sync todo note
ryanio 62e9d94
add engine_exchangeTransitionConfigurationV1
ryanio 2552f9d
remove kintusgi folder and add wip kiln folder
ryanio 33baa87
update newPayload test (random -> prevRandao)
ryanio c4812fa
Merge branch 'master' into merge-kiln-v2
ryanio 851378c
update exchangeTransitionConfiguration
ryanio a95f882
Merge branch 'master' into merge-kiln-v2
ryanio 0973cec
add tests for exchangeTransitionConfigurationV1
ryanio e927b2e
Merge branch 'master' into merge-kiln-v2
ryanio dab7c05
add config files for merge-devnet-5
ryanio 86344a5
only parse jwtSecret if rpcEngine && rpcEngineAuth
ryanio 9f02e9e
devnet5 instructions (#1766)
g11tech dcc8ddb
client: increase json parser size (#1769)
g11tech 8e2bb6b
Merge branch 'master' into merge-kiln-v2
ryanio 0e3d504
Merge branch 'merge-kiln-v2' of github.com:ethereumjs/ethereumjs-mono…
ryanio 0588401
improve/clarify kiln readme
ryanio 6376509
touch ups
ryanio File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# kiln v2 instructions | ||
|
||
kiln v2 spec devnet5 has been bootstrapped. The configs can be download from https://github.com/eth-clients/merge-testnets/tree/main/merge-devnet-5 | ||
|
||
## Execution - EthereumJS Setup | ||
|
||
Please ensure you have Node 12.x+ installed | ||
|
||
1. `git clone --depth 1 --branch merge-kiln-v2 https://github.com/ethereumjs/ethereumjs-monorepo.git` | ||
1. `cd ethereumjs-monorepo` | ||
1. `npm i` | ||
1. `cd packages/client` | ||
|
||
### Download the config | ||
|
||
1. `mkdir kiln/devnet5 && cd kiln/devnet5` | ||
2. `git init && git remote add -f origin https://github.com/eth-clients/merge-testnets.git && git config core.sparseCheckout true && echo "merge-devnet-5/*" >> .git/info/sparse-checkout && git pull --depth=1 origin main` | ||
|
||
This will download the config files in `kiln/devnet5/merge-devnet-5` which we will refer as `/path/to/downloaded/config/dir` in the following instructions. | ||
### Run client | ||
|
||
1. `npm run client:start -- --datadir kiln/datadir --gethGenesis kiln/devnet5/merge-devnet-5/genesis.json --saveReceipts --rpc --ws --rpcEngine --rpcEnginePort=8545 --bootnodes=` | ||
|
||
Starting the client will write a `kiln/datadir/jwtsecret` file (referred to as `/path/to/written/jwt/secret/file` in the following instructions) with a randomly generated secret to be used in conjuction with a CL client. To prevent the secret to be re-generated next time around you restart the client, pass the file as an argument to read from via `--jwt-secret=kiln/datadir/jwtsecret`. | ||
|
||
#### Docker | ||
|
||
Or try it in Docker. | ||
|
||
In `packages/client/kiln` run: | ||
|
||
`docker-compose --file docker-compose.ethereumjs.yml up` | ||
|
||
## Consensus | ||
|
||
### Lodestar | ||
|
||
#### Beacon | ||
|
||
1. Use lodestar branch `master` and run `yarn && yarn build` | ||
2. Export path of the downloaded config dir `export CONFIG_PATH=/path/to/downloaded/config/dir` | ||
3. Export path of the written jwt secret file `export JWT_SECRET_PATH=/path/to/written/jwt/secret/file` | ||
2. Run cmd: `./lodestar beacon --rootDir kiln/temp --paramsFile $CONFIG_PATH/config.yaml --genesisStateFile $CONFIG_PATH/genesis.ssz --bootnodesFile $CONFIG_PATH/boot_enr.yaml --network.connectToDiscv5Bootnodes --network.discv5.enabled true --eth1.enabled true --eth1.providerUrls=http://localhost:8545 --execution.urls=http://localhost:8545 --eth1.disableEth1DepositDataTracker true --jwt-secret $JWT_SECRET_PATH` | ||
|
||
#### Validator | ||
|
||
1. Run cmd: `./lodestar validator --rootDir=kiln/temp_validatordata --paramsFile=kiln/config/config.yaml --keystoresDir=kiln/keystores --secretsDir=kiln/secrets` | ||
|
||
Also, one will need to remove `--eth1.disableEth1DepositDataTracker true` and instead provide `--eth1.depositContractDeployBlock <block number>` in the previous beacon start command. The block number can be extracted from `/path/to/downloaded/config/dir/deposit_contract_block.txt` | ||
|
||
### Lighthouse | ||
|
||
### Beacon | ||
|
||
1. Use lighthouse branch `unstable` and run `make` | ||
1. Make dir `lighthouse/kiln` and copy in from the downloaded config dir: `config.yaml`, `genesis.ssz`, `deploy_block.txt`, `deposit_contract.txt`, `deposit_contract_block.txt` | ||
1. Run cmd: `lighthouse --debug-level=info --datadir=kiln/datadir --testnet-dir=kiln beacon_node --disable-enr-auto-update --dummy-eth1 --boot-nodes="enr:" --merge --http-allow-sync-stalled --metrics --disable-packet-filter --execution-endpoints=http://127.0.0.1:8545 --terminal-total-difficulty-override=` |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What's this for a strange name? 🤔
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.
Some explanation here: https://twitter.com/TimBeiko/status/1494768704143298560