This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 680
Accept a genesis.json file #1042
Labels
Milestone
Comments
Would be great! I was thinking about hacking in a command line option just to provide a list of accounts, but this would be way better. |
A newer, more complex version of genesis.json: https://github.com/ethereum/wiki/wiki/Ethereum-Chain-Spec-Format |
Would also be useful for dev testing purposes (include pre-deployed contracts in the genesis) |
Per PR #406, we'll want to also make it possible to save a genesis file when none is specified. |
Is anyone trying to work on this? I'm in the scenario described by @aakilfernandes , trying to test a pre-deployed contract. Having to spin up a real chain each time is a pain! |
Going to just ping this here, I think this is still a good idea 👍 , is there any major blocker to this? |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
genesis.json
file format specifies an initial state for the blockchain, including balances of account numbers.This could be very useful for development environments where a client has a wallet on it, and we want them to have a balance even on the simulated blockchain.
Lets clients operate in the development environment with nothing but the RPC address and an account that they've generated.
(I'm talking about Metamask here).
sample genesis.json here.
The basic format is this:
The part I care the most about is the
alloc
hash, which includes a map of accounts to an object containing their initialbalance
.An aside: A lot of pre-sale purchasers picked
1337...
as their initial balance :)The text was updated successfully, but these errors were encountered: