Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dapplion/nethermind-tests
https://github.com/dapplion/nethermind-tests
Last synced: about 20 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/dapplion/nethermind-tests
- Owner: dapplion
- Created: 2022-06-08T14:08:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T16:25:58.000Z (over 2 years ago)
- Last Synced: 2024-12-28T06:47:44.976Z (10 days ago)
- Language: Python
- Size: 240 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nethermind-tests
## FAQ:
#### clique - Why so many accounts have 1 wei?
Clique genesis JSON files Allocate 1 wei to all possible pre-compiles. See https://github.com/ethereum/EIPs/issues/716 "SpuriousDragon RIPEMD bug"
E.g. Rinkeby allocates it like this. See https://github.com/ethereum/go-ethereum/blob/092856267067dd78b527a773f5b240d5c9f5693a/core/genesis.go#L370
#### clique - How is genesis extra data computed?
```py
signers = ''.join(str(i) for i in signerAddresses)
out["genesis"]["extraData"] = ''.join(["0x", "0" * 64, signers, "0" *130])
```From https://github.com/skylenet/ethereum-genesis-generator/blob/42765fcb31c605a01e7ba1e40c5b0590fd47e6eb/apps/el-gen/genesis_chainspec.py#L120
#### How to configure keys
**KeyStore.TestNodeKey**
Set to the 0x prefixed secret key of the validator to unlock and produce blocks with
Example in `nethermind-solo-devnet-clique`
pubkey: 0x88dFc82CF71fdeb23f82C33a202f6E2D19AC0541
privkey: 0x81ca4772bbf26b62ce49f539ba603bab170f2a6fbc2661c7446c656eabcb6400```json
"KeyStore": {
"TestNodeKey": "0x81ca4772bbf26b62ce49f539ba603bab170f2a6fbc2661c7446c656eabcb6400"
},
``````json
"KeyStore": {
"BlockAuthorAccount": "0x88dFc82CF71fdeb23f82C33a202f6E2D19AC0541",
"PasswordFiles": ["./configs/password.txt"],
"KeyStoreDirectory": "./configs/keystores",
"UnlockAccounts": ["0x88dFc82CF71fdeb23f82C33a202f6E2D19AC0541"]
},
```