xelis-project / xelis-blockchain

A private blockDAG with Homomorphic Encryption and Smart Contracts
373 stars 89 forks source link

Node stuck #75

Closed rlinxy closed 4 months ago

rlinxy commented 4 months ago

Keep repeating such log:

[2024-06-27] (11:15:20.043) WARN xelis_daemon::p2p > Error occured on chain sync with Peer[connection: Connection[state: Success, peer: 198.71.55.87:2125, read: 140 KiB, sent: 4 KiB, key rotation (in/out): (1/1), connected since: 21s, closed: false], id: 16507594885463489460, topoheight: 375416, top hash: 35447fda3ff9433a532a3fa7e65c539a73f0215c7a9d008c7d73123ddb11d2f2, height: 358864, pruned: No, priority: true, tag: None, version: 1.12.0-44f0378, fail count: 0, out: true, peers: 0, tasks: Active/Active]: Error, block include a dead tx 8af1dcb3097ee38cacfe2e84b8ae15dcbc6467f26f6f3eb7b559be2b9590051a

It happened the 2nd time.

Slixe commented 4 months ago

Use zipped mainnet folder from https://node.xelis.io/files/mainnet.zip to have the full chain

Or to fix your current chain, make sure to be on latest version, and do in the daemon console: pop_blocks 50, you may have to do it few times, this depends to which nodes you are connected to (if they got the fix stored in their local DB)

rlinxy commented 4 months ago

I deleted the DB and started a new sync, it's synced now But as I mentioned this happed twice on version v1.12.0, and this version was the 'newest' at that moment. Hope it won't happen again on version 1.13, thanks, and close for now