Skip to content
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

eth_genesis does not work as intended #101

Open
jed-wemade opened this issue Jun 4, 2024 · 0 comments
Open

eth_genesis does not work as intended #101

jed-wemade opened this issue Jun 4, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jed-wemade
Copy link

eth_genesis used in gwemix download-genesis is feature for downloading genesis config from gwemix node.
Currently, the API returns content of genesis.json specified on startup.
The API does not reflect default chain config which is set on runtime so actual config is hidden to outside unless attaching IPC.
It may be reasonable as aspect of downloading genesis "file" which node used but most expects downloading "current" genesis.

Moreover, the API does not work when genesis.json is removed from node.

For testnet:

$ curl -H "Content-Type: application/json" \
  -d '{"id":0,"jsonrpc":"2.0","method":"eth_genesis","params":[]  
}' https://api.test.wemix.com
{"jsonrpc":"2.0","id":0,"error":{"code":-32000,"message":"open /opt/nxt/genesis.json: no such file or directory"}}

For mainnet EN:

$ curl -H "Content-Type: application/json" \
  -d '{"id":0,"jsonrpc":"2.0","method":"eth_genesis","params":[]
}' https://api.wemix.com 
{"jsonrpc":"2.0","id":0,"error":{"code":-32000,"message":"open /opt/wemix/genesis.json: no such file or directory"}}
@jed-wemade jed-wemade added the bug Something isn't working label Jun 4, 2024
@jed-wemade jed-wemade self-assigned this Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant