-
Notifications
You must be signed in to change notification settings - Fork 161
Cannot get eth.getBlock for block 1 #306
Comments
may be related to #301 since eth.getBlock is a wrapper around will look into this! |
I got the Block information by eth.getBlock() function with #319 update. Thank you! But it seems like still required the extraData to form the proofOfAuthorityData. Can you check please?
The expected behavior with extraData as below:
|
https://ethereum.stackexchange.com/questions/16202/what-does-the-extradata-field-of-a-block-represent |
@noot Sorry, I might miss leading the extraData. The extraData of PoA is defined. Clique extradata field, used to define PoA validators/sealers must match the following format: First part: 32bytes vanity, meaning whatever you want here since it's expressed as an hex string (64 chars long as one byte is 2 chars), here in the example it's just zeros. Second part: concatenated list of sealers/validators nodes addresses. Each address written as hex string without the "0x" prefix and must be 20 bytes long (40 chars long as one byte is 2 chars). Third part: a 65 bytes signature suffix called proposer seal. It's used to identify the proposer of the new validator in a block. Given we talk here about the genesis file, this seal has no reason to be because no specific node proposed it, it's the base on which everyone agree before starting. So it must be filled with zeros (65 zeros). Not only return 0x0 in very first 32bytes but also need 2nd/3rd parts for POA. |
@ayeteng since ethermint isn't POA, that isn't applicable here. I think leaving it as |
System info: [Include Ethermint commit, operating system name, and other relevant details]
Steps to reproduce:
git clone https://github.com/ChainSafe/ethermint.git
> cd ethermint
> ./init.sh
> emintcli rest-server --laddr "tcp://localhost:9545" --unlock-key mykey
geth attach http://localhost:9545
> eth.getBlock(1)
Expected behavior: I get this log by another eth chain.
Actual behavior: [What actually happened]
Additional info: [Include gist of relevant config, logs, etc.]
instance: Geth/v1.9.8-stable-d62e9b28/linux-amd64/go1.13.4
instance: Ethermint/0.0.0+1f63ddf/linux/go1.14.2
The text was updated successfully, but these errors were encountered: