-
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
Invalid genesis file with puppeth and geth #16317
Comments
Same issue I having |
It looks like puppeth generate one useless level of JSON object: Try to omit "genesis" section as in official example of genesis block: |
@wbt I think you should not use
In my case that gives a proper genesis file:
Hope this helps. |
Меня беся ваши папеты как и вы
…On Thu, 5 Apr 2018 21:10 Federico Gimenez, ***@***.***> wrote:
@wbt <https://github.com/wbt> I think you should not use
~/.pupppeth/bugdemo as the genesis file, when you get to the last step in
the issue description you should actually export the genesis configuration
to a file:
What would you like to do? (default = stats)
1. Show network stats
2. Manage existing genesis
3. Track new remote server
4. Deploy network components
> 2
1. Modify existing fork rules
2. Export genesis configuration
3. Remove genesis configuration
> 2
Which file to save the genesis into? (default = bugdemo.json)
>
INFO [04-05|17:02:23] Exported existing genesis block
In my case that gives a proper genesis file:
$ cat ./bugdemo.json
{
"config": {
"chainId": 47279,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
[.......]
Hope this helps.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#16317 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ac3rNUj1NPYXdbspVsJreQ6T3DOocM3yks5tljP0gaJpZM4Sq-k1>
.
|
Yup, @fgimenez is correct, use the exported genesis instead |
In a simple use of puppeth to generate a genesis block, and then use of geth to read it in, I am getting an error that it's missing required field 'gasLimit' though the field seems to be present in the genesis block.
System information
Geth Version: 1.8.2-stable
Git Commit: b8b9f7f
Architecture: amd64
Protocol Versions: [63 62]
Go Version: go1.9.2
Operating System: Windows 10
Puppeth to create Genesis block
Contents of Genesis block file
For brevity, I have omitted most of accounts 00...FF which each have a 1 Wei balance in the genesis block file produced by puppeth (I don't fully understand why, but that seems to be an unrelated issue). Otherwise, this is the block file verbatim.
Note the line
"gasLimit": "0x47b760",
which looks as present as any other.Attempts to Run: Actual Behavior
(Output of mkdir omitted but successful).
For comparison:
Expected behaviour
I expected the init to complete successfully and not report 'gasLimit' was missing, as it seems to be there in the JSON.
The text was updated successfully, but these errors were encountered: