bsc icon indicating copy to clipboard operation
bsc copied to clipboard

Invalid merkle root

Open arthurwolf opened this issue 1 year ago • 3 comments

I was getting "invalid merkle root" errors in my terminal, and the node stopped working.

So I just deleted the chain, downloaded a fresh snapshot, and started syncing from that snapshot.

It started catching up for a few hours, but then at one point (about one day late/back from being synced), it started giving the same error AGAIN:

c31377bd196a51fa3fef91c532657ecac6f44e207fc0ebc8b0855e69d376 logs: [] bloom: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 state: 
         155: cumulative: 18687667 gas: 21000 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0x3761a48bda77036a952ce4444fcbfaec48c94312a82c26d7c5bf3ffb6b03acbc logs: [] bloom: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 state: 
         156: cumulative: 18739342 gas: 51675 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0x32a1fbc31c9eda74c9fcf8ca503840e26a6edf8a234c2feb3d55dcd08f0c48d0 logs: [0xc1daa37970 0xc1daa37a20] bloom: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000200000000000000000000001000008000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000008000000000000000000000000000000000000000000000020000000000000000000000000000000008000000000000000000000000000000000002000000000000000000000000200000000000000000000000000000000012000000000000000000100000000000000000000000000000000000000800 state: 
         157: cumulative: 18911388 gas: 172046 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0xe72b4fb4d32cbd3798e9774ffa27f112edfc61320afb3abde49180f16f1e284b logs: [0xc1daa37ad0] bloom: 00000000000010000000004000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000 state: 
         158: cumulative: 18932388 gas: 21000 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0x088e179edd6699959017321e0a3c99b4eddee24ebc4b41fce82c74a17a330744 logs: [] bloom: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 state: 
         159: cumulative: 18953388 gas: 21000 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0x0a0840fe9a6961741c09d740e6afc619d01329a70860d971712f9ba4ff232d22 logs: [] bloom: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 state: 
         160: cumulative: 18980556 gas: 27168 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0xa5df890e9321702eca54a878d85ec7a369d323676f1c215365cf8442006c97bc logs: [0xc1daa37d90 0xc1daa37e40] bloom: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002010010000000000000000000000000000200020000200200000000000000000080000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000010000000000000000000000000000000000000000000000 state: 


Error: invalid merkle root (remote: 780101d8836c97249fde97563f4208a10a8193d018c0e054abf9e18828531027 local: 75b98a5bfc6c94c6bd0fc61bc523ee7e4831a7708b1c40e518ebe6f922f719b4)
##############################

WARN [10-13|15:13:46.041] Synchronisation failed, dropping peer    peer=8faa9cdb16dea15f92966e6a592945874e3c1caea023e4874fb80618e7f794b1 err="retrieved hash chain is invalid: invalid merkle root (remote: 780101d8836c97249fde97563f4208a10a8193d018c0e054abf9e18828531027 local: 75b98a5bfc6c94c6bd0fc61bc523ee7e4831a7708b1c40e518ebe6f922f719b4)"
WARN [10-13|15:13:52.043] Synchronisation failed, dropping peer    peer=8faa9cdb16dea15f92966e6a592945874e3c1caea023e4874fb80618e7f794b1 err=timeout
WARN [10-13|15:14:03.915] Snapshot extension registration failed   peer=bd651303 err="peer connected on snap without compatible eth support"
WARN [10-13|15:14:28.747] Synchronisation failed, retrying         err="peer is unknown or unhealthy"




What is going on???

What should I do??

System information

Geth version: geth version

arthur@bsc:~/bsc$ ./geth_linux version
Geth
Version: 1.1.15
Git Commit: f3fd0f8bffb3b57a5a5d3f3699617e6afb757b33
Architecture: amd64
Go Version: go1.17.13
Operating System: linux
GOPATH=
GOROOT=go

OS & Version: Ubuntu latest

Commit hash : (if develop)

arthurwolf avatar Oct 13 '22 15:10 arthurwolf

v1.1.16 is needed, because of hardfork

heki-ru avatar Oct 13 '22 15:10 heki-ru

Thanks. Questions:

  1. What hardfork?
  2. How do I learn about when I need to upgrade my node? Any way to receive emails or some sort of notifications? How do y'all do it? Do you just wait for things to break then come here for help? Doesn't sound very efficient.

arthurwolf avatar Oct 13 '22 15:10 arthurwolf

Hi @arthurwolf , hardfork is similar to a system upgrade. After a specified height, new code will be run. If the node is not updated in time to support fork, your node will continue to work on this chain.

You can subscribe to bnb-chain's twitter, whenever BSC has a new release, it will be announced https://twitter.com/BNBCHAIN

j75689 avatar Oct 14 '22 02:10 j75689