cosmos / gaia

Cosmos Hub
https://hub.cosmos.network
Apache License 2.0
465 stars 679 forks source link

Validating Cosmos Hub blockchain from the first possible height #2838

Open wLRy opened 9 months ago

wLRy commented 9 months ago

I am attempting to validate the cosmoshub-4 chain starting from the first possible height, which according to Cosmos Hub Summary is 5200791. So, following this tutorial, I downloaded and initiated gaia-4.2.1. Also downloaded the genesis from https://raw.githubusercontent.com/cosmos/mainnet/master/genesis/genesis.cosmoshub-4.json.gz and the ~/.gaia/config/addrbook.json from https://quicksync.io/addrbook.cosmos.json. About the last part I expected that there will be some seed peers hardcoded, but seems not. I also enabled the API in the configuration.

Finally I start gaia with

gaiad start --x-crisis-skip-assert-invariants

For over 2 hours I get messages like these in log:

6:44PM INF Saving AddrBook to file book=/home/wlry/.gaia/config/addrbook.json module=p2p size=1149
6:44PM INF Ensure peers module=pex numDialing=0 numInPeers=0 numOutPeers=5 numToDial=5
6:44PM INF Will dial address addr={"id":"f37e86bc57a135ab71f8e170ab5c1c855c629fd9","ip":"100.96.16.32","port":26656} module=pex
6:44PM INF Will dial address addr={"id":"f4a6018f121a406de04b85582a7cb129ded1a01a","ip":"34.220.8.253","port":26656} module=pex
6:44PM INF Will dial address addr={"id":"b75912fe37de7b220a9de92ac454cabeff942c14","ip":"34.240.191.218","port":26656} module=pex
6:44PM INF Will dial address addr={"id":"4856c7570729869726abdc4b0a4096c42a5211d3","ip":"54.39.48.217","port":26656} module=pex
6:44PM INF Will dial address addr={"id":"cf52e109b7015d5c21f50ab4331fb7062160ab6c","ip":"34.79.21.52","port":26656} module=pex
6:44PM INF Dialing peer address={"id":"f37e86bc57a135ab71f8e170ab5c1c855c629fd9","ip":"100.96.16.32","port":26656} module=p2p
6:44PM INF Dialing peer address={"id":"f4a6018f121a406de04b85582a7cb129ded1a01a","ip":"34.220.8.253","port":26656} module=p2p
6:44PM INF Dialing peer address={"id":"b75912fe37de7b220a9de92ac454cabeff942c14","ip":"34.240.191.218","port":26656} module=p2p
6:44PM ERR dialing failed (attempts: 3): dial tcp 100.96.16.32:26656: i/o timeout addr={"id":"f37e86bc57a135ab71f8e170ab5c1c855c629fd9","ip":"100.96.16.32","port":26656} module=pex
6:44PM ERR dialing failed (attempts: 8): dial tcp 34.220.8.253:26656: i/o timeout addr={"id":"f4a6018f121a406de04b85582a7cb129ded1a01a","ip":"34.220.8.253","port":26656} module=pex
6:44PM ERR dialing failed (attempts: 2): dial tcp 34.240.191.218:26656: i/o timeout addr={"id":"b75912fe37de7b220a9de92ac454cabeff942c14","ip":"34.240.191.218","port":26656} module=pex

And I get no blocks, as reported by http://localhost:1317/blocks/latest:

{"block_id":{"hash":"","parts":{"total":0,"hash":""}},"block":null}

What am I doing wrong?

mmulji-ic commented 9 months ago

Hi @wLRy I suspect that the nodes that you connected to have pruned those blocks. Will check to see if there are others.

wLRy commented 9 months ago

Hi @wLRy I suspect that the nodes that you connected to have pruned those blocks. Will check to see if there are others.

Thanks in advance! I had a feeling that might be the case too. Maybe they even blacklisted me, which could explain why I keep getting those 'i/o timeout' errors?