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

Genesis Block Does Not Match Parity #31

Open
ansermino opened this issue Sep 13, 2018 · 3 comments
Open

Genesis Block Does Not Match Parity #31

ansermino opened this issue Sep 13, 2018 · 3 comments

Comments

@ansermino
Copy link
Member

We appear to be having issues getting Geth to produce the same genesis block as the Parity Aura implementation.

You can see the genesis block configurations here:
Parity: https://github.com/goerli/testnet/blob/master/parity/goerli.json
Geth:

GoerliChainConfig = &ChainConfig{

(Alternatively: https://github.com/goerli/testnet/blob/master/geth/goerli.genesis)

These are the genesis blocks retrieved via RPC:
https://gist.github.com/ansermino/f4e9a3ebaf7ad9a0f52da53e9bbb6b1d

We can log the RLP encoding in geth and should get this:

901f3a00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000940000000000000000000000000000000000000000a0cef9491631fe6845df55ad70fd7547e26488374fedbfc31a668992fc113bbb62a00000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000000b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080835b8d80808080a00000000000000000000000000000000000000000000000000000000000000000880000000000000000

This can be decoded with rlpdump (make all && ./buid/bin/rlpdump -hex <encoded data>):

[
  0000000000000000000000000000000000000000000000000000000000000000,
  0000000000000000000000000000000000000000000000000000000000000000,
  0000000000000000000000000000000000000000,
  cef9491631fe6845df55ad70fd7547e26488374fedbfc31a668992fc113bbb62,
  0000000000000000000000000000000000000000000000000000000000000000,
  0000000000000000000000000000000000000000000000000000000000000000,
  00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,
  020000,
  "",
  5b8d80,
  "",
  "",
  "",
  0000000000000000000000000000000000000000000000000000000000000000,
  0000000000000000,
]

A similar dump from Parity would be very useful. The leading theory is that a disagreement in the signature field construction is causing this issue.

@ghost
Copy link

ghost commented Sep 14, 2018

@ansermino Same here #32

@5chdn
Copy link

5chdn commented Sep 14, 2018

let's work on this in the same ticket please

@ddorgan
Copy link
Member

ddorgan commented Sep 14, 2018

rlpdump of parity's block 0:

[
[
0000000000000000000000000000000000000000000000000000000000000000,
1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,
0000000000000000000000000000000000000000,
cef9491631fe6845df55ad70fd7547e26488374fedbfc31a668992fc113bbb62,
56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,
56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,
020000,
"",
5b8d80,
"",
"",
"",
"",
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ac1dc0ffee,
],
[],
[],
]
[
[
4a982649dec9992d0c83d195a81670bfcbe769436a900bab113371a25d7ad4ab,
1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,
0082a7bf6aaadab094061747872243059c3c6a07,
b0b7e2263411e538ffdb90f03a5a331d910c3b69f035cb8c4ea45a0ccf8a3afc,
56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,
56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,
ffffffffffffffffffffffffe91b4337,
01,
5b769e,
"",
5b92f320,
de830201008f5061726974792d457468657265756d86312e32382e30826c69,
16e4bcc8,
bd6060128ee9738ab49fc607baa298d49220366587d4582a0983f221f5fb7ec93735d43ee94dfba213797a6307d121fe26de38ad769906a5ba61f23f2c1afca101,
],
[],
[],
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants