Issue Encountered while Setting Up DyDxV4 Full Node

Hi DyDx team,

I’m currently facing an issue while attempting to set up a DyDxV4 full node on my local environment using an existing snapshot. The node appears to sync correctly until height 1805000, but afterward, it encounters the following error:

Error Message:

ERR error on catchup replay; proceeding to start state anyway err="cannot replay height 1805001. WAL does not contain #ENDHEIGHT for 1805000" module=consensus
12:22PM INF Timed out dur=-1518.654117 height=1805001 module=consensus round=0 step=1
12:22PM INF received proposal module=consensus proposal={"Type":32,"block_id":{"hash":"AC63FACFBF85F420A8A2978290EE7FB76D3D483EEE34C7256888895E1F132BDD","parts":{"hash":"6474DE3F4E153EE90FA2345074B523EE3BCCAF894EDF88D97BC8E3FF0B020CD9","total":1}},"height":1805001,"pol_round":-1,"round":0,"signature":"WDJy1ObpEGSHQjgjTZ4sH9SaTEvFwPwow3mJDvonP0xTTgT3fjpfSfkT8h2toQ0jdHOxqmgdgCEM3qYNiSkQBA==","timestamp":"2023-11-23T21:06:17.501972016Z"} proposer=DE774AB209136C8453D54603D03EDD1D03B30AB6
12:22PM INF received complete proposal block hash=AC63FACFBF85F420A8A2978290EE7FB76D3D483EEE34C7256888895E1F132BDD height=1805001 module=consensus
12:22PM ERR prevote step: consensus deems this block invalid; prevoting nil err="wrong Block.Header.AppHash.  Expected 4662412460661826251B42406020D6181D3851CA933105F543F5770EF87669BD, got AF113ACDD54B93B5CB947A3C143FD5478AA805CFD08CEDEA8175AD7A837DD2A2" height=1805001 module=consensus round=0
12:22PM ERR CONSENSUS FAILURE!!! err="precommit step; +2/3 prevoted for an invalid block: wrong Block.Header.AppHash.  Expected 4662412460661826251B42406020D6181D3851CA933105F543F5770EF87669BD, got AF113ACDD54B93B5CB947A3C143FD5478AA805CFD08CEDEA8175AD7A837DD2A2" module=consensus stack="goroutine 400

It seems to be stuck at this point, and the logs indicate issues related to consensus and block validation.

Here are some additional logs:

8:08AM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=10 numToDial=0
8:09AM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=10 numToDial=0
8:09AM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=10 numToDial=0
8:10AM INF Saving AddrBook to file book=/root/.dydxprotocol/config/addrbook.json module=p2p size=387

Node syncing successfully until height 1805000 and failed to sync beyond this point
I would appreciate any assistance or guidance you can provide to resolve this issue. Thank you for your attention to this matter.

2 Likes

Hi @sherlock,

You need to upgrade to v2.0.0 your dydx binary v2.0.0.

1 Like