-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
geth --dev doesn't work with a custom genesis block (geth init ...). #15182
Comments
This is a huge problem when trying to test code locally. :( |
I'll take a look at this |
Getting below issue
|
|
I am still facing the same issue...has this issue been fixed yet?
then run
and I get
however running without initialising with
|
haven't been able to work on this yet, if somebody else wants to handle they can. Otherwise I can take another look in a week or two. |
I'm facing the same issue. It is really annoying to test locally without --dev and --dev.period. |
I'm also getting this issue when I use the |
Going through the Therefore if you had created a genesis block manually beforehand, for example with Fixing this would require changing the functionality of the |
How about separate --datadir per environment? For example:
This way |
@slatunje that would make sense, however I think the issue here is that users want to be able to use But I see the advantage to having Maybe some others can chime in with their thoughts here. |
Any updates on this? It remains a problem, being able to use a custom genesis block together with the functionality of --dev is very useful |
It seams that with new geth (1.8) the behaviour changed. It's not possible any more to use |
Thank you very much. |
@robert-zaremba You can still use That said, |
geth --datadir=./data --dev usually people always use this method |
cd data |
To get geth to use the same dev private key on startup, you can put the original keystore file under the keystore directory. Export:
Import
So for development if you want a couple of accounts pre-funded, just make those as the first transactions from the dev account. |
System information
Geth version: 1.7.0
OS & Version: Linux -- docker container: ethereum/client-go:v1.7.0
Expected behaviour
geth --dev
works with custom genesis block.Actual behaviour
geth --dev
returns error if runs after removing DB andgeth init myGenesis.json
Steps to reproduce the behaviour
gethGenesisBlock.json (the
config
is the same as the one logged when runninggeth --dev
on a clean storage):steps:
Backtrace
The text was updated successfully, but these errors were encountered: