openvcash / vcash

A decentralized currency for the internet.
https://vcash.info
GNU Affero General Public License v3.0
36 stars 35 forks source link

Node error invalid_chain_found: Block, invalid chain found #42

Open whphhg opened 6 years ago

whphhg commented 6 years ago

Both of my nodes that I'm using for creating and testing of the GUI started to log the errors below a few minutes ago.

[INFO] - reorganize: Db Tx reorganize started.
[INFO] - reorganize: Db Tx reorganize is disconnecting 16 blocks; b612dd55745cd93121d4..5acbe482642bd05125041afd2bb40a8bc73e1580f431dcebc7089fa420abef56.
[INFO] - reorganize: Db Tx reorganize is connecting 5 blocks; b612dd55745cd93121d4..0000000000004c1ed4234796bcb74d186ee7f3f179bb7bfa6fdd0306c55acf88.
[ERROR] - fetch_inputs: Transaction b46d130f75 previous transaction 0451c2e3b9 index entry not found.
[ERROR] - reorganize: Db Tx reorganize failed, connect block a2359925de8ab78da554 failed.
[INFO] - invalid_chain_found: Block, invalid chain found, invalid block = 0000000000000fc34d24, height = 886238, trust = 1482189794453387, date = 1516546127.
[INFO] - invalid_chain_found: Block, invalid chain found, current block = 5acbe482642bd0512504, height = 886208, trust = 1482173890224979, date = 1516544297.
[ERROR] - set_best_chain: Block set best chain failed, reorganize failed.
[ERROR] - accept_block: Block, accept block failed, add_to_block_index failed.
[ERROR] - process_block: Stack failed to process block, accept block failed.

After restarting for the first time one died with Segmentation fault shortly after launching. Now both are logging the above error and money supply is at 5 for some reason.

I've started a fresh sync and will report what happens.

whphhg commented 6 years ago

It finished syncing and is currently on height 886,733.

whphhg commented 6 years ago

I got another invalid_chain_found in the debug.log, but this time for [ERROR] - set_best_chain: Block set best chain inner failed..

[INFO] - send_getdata_message: TCP connection 2942562525 is sending getdata, count = 1, type = 2
[INFO] - reorganize: Db Tx reorganize started.
[INFO] - reorganize: Db Tx reorganize is disconnecting 1 blocks; f9680b18fa9fef152d40..f3589cd6c9df6542f4931849985296cdf684098097589eaf73e3b081dea1fba0.
[INFO] - reorganize: Db Tx reorganize is connecting 1 blocks; f9680b18fa9fef152d40..00000000000042cdaa73c0832035a6c1573ea5cff3d5889610c569c5342c0d4f.
[INFO] - reorganize: Db Tx reorganize took 0.000879281 seconds.
[INFO] - reorganize: Db Tx reorganize finished.
[INFO] - check_block: Got incentive reward(RAPED) NOT ENOUGH.0.99:1
[INFO] - invalid_chain_found: Block, invalid chain found, invalid block = 0000000000003e39fe23, height = 892992, trust = 1485219984869716, date = 1517319496.
[INFO] - invalid_chain_found: Block, invalid chain found, current block = 000000000000a27a75e5, height = 892991, trust = 1485219516481686, date = 1517319436.
[ERROR] - set_best_chain: Block set best chain inner failed.
[ERROR] - accept_block: Block, accept block failed, add_to_block_index failed.

I've restarted the node and it synced to the same height as the block explorer (893,064).