Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

ProposalBlock is invalid #450

Closed
araskachoi opened this issue Aug 17, 2020 · 3 comments · Fixed by #513
Closed

ProposalBlock is invalid #450

araskachoi opened this issue Aug 17, 2020 · 3 comments · Fixed by #513

Comments

@araskachoi
Copy link
Contributor

System info: [Include Ethermint commit, operating system name, and other relevant details]

$ ethermintd version
0.0.0-11-gca0a79f

ID=Ubuntu
RELEASE=18.04
CODENAME=bionic
DESCRIPTION="Ubuntu 18.04.5 LTS"

Error:

Sending a transaction to a node in the testnet caused an error that halted the chain. The error message is: enterPrevote: ProposalBlock is invalid . This seems to

Node0 Log:
testnode0

Node1 Log:
testnode1

Tx sent:
tx

Steps to reproduce:

  1. Copy the proper files to correct directories
scp -r emint_2nodes/node0/ethermintd/ root@<node0_IP>:~/.ethermintd
scp -r emint_2nodes/node0/ethermintcli root@<node0_IP>:~/.ethermintcli

scp -r emint_2nodes/node1/ethermintd/ root@<node1_IP>:~/.ethermintd
scp -r emint_2nodes/node1/ethermintcli root@<node1_IP>:~/.ethermintcli

emint_2nodes.zip

  1. Start the nodes:
# node 0
ethermintcli config keyring-backend test
ethermintd start > emintd.log &
emintcli rest-server --laddr "tcp://<node0_IP>:8545" --unlock-key node0 --chain-id 1470189191838651654 --trace > emintcli.log &

# node 1
ethermintcli config keyring-backend test
ethermintd start > emintd.log &
emintcli rest-server --laddr "tcp://<node1_IP>:8545" --unlock-key node0 --chain-id 1470189191838651654 --trace > emintcli.log &
  1. Send a transaction to the network:
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params": [{"from": "<node0_accountHexAddress>", "to": "0x7f9f463c4d57b1bd3e3b79051e6c5ab703e803d9", "value": "0xA", "gasLimit": "0x5208", "gasPrice": "0xA"}],"id":1}' -H "Content-Type: application/json" <node0_IP>:8545
  1. View the output of the network:
tail -f emintd.log

Expected behavior: Should generate blocks without failure to consensus

I[2020-08-17|19:42:34.230] Executed block                               module=state height=2 validTxs=0 invalidTxs=0
I[2020-08-17|19:42:34.232] Committed state                              module=state height=2 txs=0 appHash=D081986AE0FCFC33BA6F65E16124AA81695B36030779827B4F9BA9FEDFB0E793
I[2020-08-17|19:42:39.550] Executed block                               module=state height=3 validTxs=0 invalidTxs=0
I[2020-08-17|19:42:39.552] Committed state                              module=state height=3 txs=0 appHash=C5F286C83AF8112E0333E9F5B397C95F491F11ED041D708199DFF3DFE5E4A53F
I[2020-08-17|19:42:44.963] Executed block                               module=state height=4 validTxs=0 invalidTxs=0

Actual behavior: Blocks remain stuck with error message

E[2020-08-17|19:47:56.264] enterPrevote: ProposalBlock is invalid       module=consensus height=62 round=0 err="wrong Block.Header.AppHash.  Expected 1EAB96473578BEBA876CA9D204E64348C2DB2F3090753B53E7C8F880872C0A2A, got E5401BB87BF21409E6BE6BC740AE6E7318F0587CF9A2E0AFF74A6570E5753A3D"
E[2020-08-17|19:48:01.997] enterPrevote: ProposalBlock is invalid       module=consensus height=62 round=2 err="wrong Block.Header.AppHash.  Expected 1EAB96473578BEBA876CA9D204E64348C2DB2F3090753B53E7C8F880872C0A2A, got E5401BB87BF21409E6BE6BC740AE6E7318F0587CF9A2E0AFF74A6570E5753A3D"
E[2020-08-17|19:48:11.635] enterPrevote: ProposalBlock is invalid       module=consensus height=62 round=4 err="wrong Block.Header.AppHash.  Expected 1EAB96473578BEBA876CA9D204E64348C2DB2F3090753B53E7C8F880872C0A2A, got E5401BB87BF21409E6BE6BC740AE6E7318F0587CF9A2E0AFF74A6570E5753A3D"
E[2020-08-17|19:48:25.269] enterPrevote: ProposalBlock is invalid       module=consensus height=62 round=6 err="wrong Block.Header.AppHash.  Expected 1EAB96473578BEBA876CA9D204E64348C2DB2F3090753B53E7C8F880872C0A2A, got E5401BB87BF21409E6BE6BC740AE6E7318F0587CF9A2E0AFF74A6570E5753A3D"
E[2020-08-17|19:48:42.901] enterPrevote: ProposalBlock is invalid       module=consensus height=62 round=8 err="wrong Block.Header.AppHash.  Expected 1EAB96473578BEBA876CA9D204E64348C2DB2F3090753B53E7C8F880872C0A2A, got E5401BB87BF21409E6BE6BC740AE6E7318F0587CF9A2E0AFF74A6570E5753A3D"
@wade-liwei
Copy link

ref #348

@araskachoi
Copy link
Contributor Author

araskachoi commented Aug 19, 2020

I have noticed that node0 has the odd "round" and node1 has the even "round"
I also see that the apphashes that the nodes are expecting are swapped
node0: Expected 1F482EDF235BF7EABA7D846C3957722A6EEE9607D3216DB41892DC9EFF65C67C, got 4E6D85124FD20EB9EFDDC03F2680D4EA508404EFAF65177FB1AA8EBAAFF0D47A"
node1: Expected 4E6D85124FD20EB9EFDDC03F2680D4EA508404EFAF65177FB1AA8EBAAFF0D47A, got 1F482EDF235BF7EABA7D846C3957722A6EEE9607D3216DB41892DC9EFF65C67C"

node0_log

node1_log

@araskachoi araskachoi added help wanted Extra attention is needed Priority: 1 - Critical and removed help wanted Extra attention is needed labels Aug 21, 2020
@fedekunze
Copy link
Contributor

@araskachoi can you update the issue with the latest findings? 🙏

@noot noot mentioned this issue Sep 14, 2020
11 tasks
@noot noot closed this as completed in #513 Sep 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants