vertcoin-project / vertcoin-core

A digital currency with mining decentralisation and ASIC resistance as a key focus
https://vertcoin.org
MIT License
350 stars 134 forks source link

Fresh full node deployment fail to download blockchain #205

Closed denis256 closed 2 years ago

denis256 commented 2 years ago

Noticed that started from scratch full node(0.18.0) fail to download blockchain data,

Expected behavior

Size of blockchain directory is increasing, block height is increasing if queried over API

Actual behavior

Size of blockchain directory is not increasing:

# du -h .
8.0K    ./blocks/index
17M ./blocks
12K ./chainstate
8.0K    ./indexes/txindex
8.0K    ./indexes
1.3G    .

Logs are full of entries like:

2022-08-23T15:50:04Z ERROR: AcceptBlockHeader: Consensus::CheckBlockHeader: 7c9c6fe9b3971c66e1ae7a27ac9fba96fb5a036fe50711038e43f9cd1901d8ab, high-hash, proof of work failed
2022-08-23T15:50:04Z Disconnecting and discouraging peer 65.21.137.242:5889!
2022-08-23T15:50:04Z ERROR: AcceptBlockHeader: Consensus::CheckBlockHeader: 7c9c6fe9b3971c66e1ae7a27ac9fba96fb5a036fe50711038e43f9cd1901d8ab, high-hash, proof of work failed
2022-08-23T15:50:04Z Disconnecting and discouraging peer 84.245.14.73:5889!
2022-08-23T15:50:04Z ERROR: AcceptBlockHeader: Consensus::CheckBlockHeader: 7c9c6fe9b3971c66e1ae7a27ac9fba96fb5a036fe50711038e43f9cd1901d8ab, high-hash, proof of work failed
2022-08-23T15:50:04Z Disconnecting and discouraging peer 188.182.153.82:5889!
2022-08-23T15:50:04Z ERROR: AcceptBlockHeader: Consensus::CheckBlockHeader: 7c9c6fe9b3971c66e1ae7a27ac9fba96fb5a036fe50711038e43f9cd1901d8ab, high-hash, proof of work failed
2022-08-23T15:50:04Z Disconnecting and discouraging peer 70.121.9.84:5889!
2022-08-23T15:50:07Z New outbound peer connected: version: 70015, blocks=1828028, peer=21 (full-relay)
2022-08-23T15:50:43Z ERROR: AcceptBlockHeader: Consensus::CheckBlockHeader: 7c9c6fe9b3971c66e1ae7a27ac9fba96fb5a036fe50711038e43f9cd1901d8ab, high-hash, proof of work failed
2022-08-23T15:50:43Z Disconnecting and discouraging peer 72.203.235.89:5889!
2022-08-23T15:53:02Z Potential stale tip detected, will try using extra outbound peer (last tip update: 1049 seconds ago)
2022-08-23T15:54:22Z New outbound peer connected: version: 70016, blocks=1828030, peer=22 (full-relay)
2022-08-23T15:54:44Z ERROR: AcceptBlockHeader: Consensus::CheckBlockHeader: 7c9c6fe9b3971c66e1ae7a27ac9fba96fb5a036fe50711038e43f9cd1901d8ab, high-hash, proof of work failed
2022-08-23T15:54:44Z Disconnecting and discouraging peer 159.69.203.32:5889!
2022-08-23T15:57:09Z New outbound peer connected: version: 70015, blocks=1828032, peer=23 (full-relay)

To reproduce Run vertcoind from the release package

vertcoind -datadir=/tmp/vertcoin -txindex -server -rest -printtoconsole -rpcallowip=0.0.0.0/0

System information

Ubuntu 20.04.2 LTS, 5.4.0-122-generic

vertiond commented 2 years ago

I cannot reproduce this.

7c9c6fe9b3971c66e1ae7a27ac9fba96fb5a036fe50711038e43f9cd1901d8ab is block #347000 which is fork height for Lyra2REv2 back in 2015. This suggests that you are running an old version of Vertcoin-Core or perhaps syncing from an old database.

Confirm that getnetworkinfo returns the following:

"version": 180000, "subversion": "/Satoshi:0.18.0/", "protocolversion": 70016,`

Assuming you are running the correct version, try reindexing by running vertcoind with the -reindex flag.

vertiond commented 2 years ago

Closing due to inactivity