cosmos / mainnet

It's happening!
128 stars 251 forks source link

README needs updating. #167

Open enriquemanuel opened 1 year ago

enriquemanuel commented 1 year ago

Currently the README.md has 2 options:

  1. Sync from scratch
  2. Sync from state

The scratch starts at version 4 and brings it over to version 6, but right now we are in version 8; can this be updated to include those steps? Also, can we sync from scratch from a different version?

Also, if we upgrade from State, the genesis file being pointed is wrong (the URL doesn't exist), but more importantly the process doesn't work. I just tried it and it fails and enters an error state and stops syncing.

Error trying to do state syncing

:43PM INF Starting state sync module=statesync
6:43PM INF Downloading trusted light block using options module=light
6:43PM INF Dialing peer address={"id":"202c5f5103cb9fbdc4f2e9de0f34d1c14a795135","ip":"209.182.238.232","port":26656} module=p2p
6:43PM INF Dialing peer address={"id":"4c46d32cbc4777c59a91a53fdadf8a3fa362036e","ip":"116.202.10.68","port":26656} module=p2p
6:43PM INF Dialing peer address={"id":"69726390a827b77795210fcbc5b3a772997067be","ip":"80.64.211.51","port":26656} module=p2p
6:43PM INF Dialing peer address={"id":"f5f8b96406a165d486be243723bfa7291db1cf62","ip":"35.230.170.155","port":26656} module=p2p
6:43PM INF Dialing peer address={"id":"aca1c801e7f9483451b6eb3da8c1ca12b41b6cc8","ip":"13.209.202.253","port":26656} module=p2p
6:43PM INF Dialing peer address={"id":"cfd785a4224c7940e9a10f6c1ab24c343e923bec","ip":"164.68.107.188","port":26656} module=p2p
6:43PM INF Dialing peer address={"id":"29cdf00b74acb77f063549ea5afad63cdacf4782","ip":"3.250.150.56","port":26656} module=p2p
6:43PM INF Dialing peer address={"id":"6111aa16a8907c1ef66a8320e23d54a0064a3a60","ip":"138.201.255.249","port":26656} module=p2p
6:43PM INF Dialing peer address={"id":"c22eaef0687c507ccd951d8229a25f1f485a2976","ip":"47.243.23.126","port":26656} module=p2p
6:43PM INF Dialing peer address={"id":"bc0eeeabdc558cdb39f4a8148b5022ba537512b4","ip":"46.166.138.217","port":26656} module=p2p
6:43PM INF service start impl="Peer{MConn{35.230.170.155:26656} f5f8b96406a165d486be243723bfa7291db1cf62 out}" module=p2p msg={} peer={"id":"f5f8b96406a165d486be243723bfa7291db1cf62","ip":"35.230.170.155","port":26656}
6:43PM INF service start impl=MConn{35.230.170.155:26656} module=p2p msg={} peer={"id":"f5f8b96406a165d486be243723bfa7291db1cf62","ip":"35.230.170.155","port":26656}
6:43PM INF Added peer module=p2p peer={"Data":{},"Logger":{}}
6:43PM INF Dialing peer address={"id":"5b4ed476e01c49b23851258d867cc0cfc0c10e58","ip":"206.189.4.227","port":26656} module=p2p
6:43PM INF error from light block request from primary, removing... error="error unmarshalling: invalid character 'S' looking for beginning of value" height=14107106 module=light primary={}
6:43PM ERR error on light block request from witness, removing... error="error unmarshalling: invalid character 'S' looking for beginning of value" module=light primary={}
6:43PM ERR failed to remove witnesses err="no witnesses connected. please reset light client" module=light witnessesToRemove=[0]

so my question would be, can the state sync be tested and corrected for version 8?

faddat commented 1 year ago

Hi @enriquemanuel -- great point -- I'll make links to gaia's state sync docs for v9 in #169