HdacTech / hdac

HDAC Core
GNU General Public License v3.0
35 stars 20 forks source link

blockchain is forking itself over and over. Check daemon logs: #7

Closed a1binos closed 5 years ago

a1binos commented 5 years ago

2018-09-23 09:16:38 hdac: Synced with node 2 on block 138258 - requesting mempool
2018-09-23 09:16:39 Added time data, samples 3, offset +0 (+0 minutes)
2018-09-23 09:16:39 Added time data, samples 4, offset +0 (+0 minutes)
2018-09-23 09:16:40 Set Difficulty: (245902)
2018-09-23 09:16:40 hdac: >>>52.79.68.15:8823 blkDiffT: 118 diffT: 93 (1537694200-1537694107), nf 8 cnt 4 / 138258-138255=723
2018-09-23 09:16:40 hdac: WZ: 1 MINER: HHBzRr8SVsMfjo9N4eCaNnfEKfXYbztdPP M-DEPTH: 4 Cont: 0
2018-09-23 09:16:40 hdac: New Block from peer-52.79.68.15:8823. MINER(HHBzRr8SVsMfjo9N4eCaNnfEKfXYbztdPP) WZ: 1 NF: 27 BH: 138258
2018-09-23 09:16:40 ERROR: ConnectBlock() : inputs missing/spent
2018-09-23 09:16:40 Misbehaving: seed.as.hdactech.com:8823 (0 -> 100) BAN THRESHOLD EXCEEDED
2018-09-23 09:16:40 InvalidChainFound: invalid block=c3f9056f60a8f30f441e39891db316c9a1813d48479b2a61776eea2e560a610f height=138259 log2_work=66.147935 date=2018-09-23 09:15:07
2018-09-23 09:16:40 InvalidChainFound: current best=f4cdb249a45d7f3c41f7162d4de1bc834fe333d9ea19cc80931fe3e33df38bd5 height=138258 log2_work=66.147916 date=2018-09-23 09:13:09
2018-09-23 09:16:40 ERROR: ConnectTip() : ConnectBlock c3f9056f60a8f30f441e39891db316c9a1813d48479b2a61776eea2e560a610f failed
2018-09-23 09:16:40 InvalidChainFound: invalid block=c3f9056f60a8f30f441e39891db316c9a1813d48479b2a61776eea2e560a610f height=138259 log2_work=66.147935 date=2018-09-23 09:15:07
2018-09-23 09:16:40 InvalidChainFound: current best=f4cdb249a45d7f3c41f7162d4de1bc834fe333d9ea19cc80931fe3e33df38bd5 height=138258 log2_work=66.147916 date=2018-09-23 09:13:09
2018-09-23 09:16:40 Added time data, samples 5, offset -3 (+0 minutes)
2018-09-23 09:16:40 nTimeOffset = +0 (+0 minutes)
2018-09-23 09:16:42 ERROR: AcceptBlockHeader : block is marked invalid
2018-09-23 09:16:42 ERROR: invalid header received

AdTokens commented 5 years ago

I reported this problem. There is a difference between Europe Explorer and Asia Explorer.

AS Block #138388 mined by HVWwcaW3meffJfqzeP2L9XWoFYNFHFmzhA

EU Block #138388 mined by H8WabmtbrfpNzfJCgBbMQ2UJB2duiCrM3m

Explorer doesn’t synchronize with each other. Does this mean it's a hardfork? Or is the problem in Hdac Explorer?

https://explorer.eu.hdactech.com/hdac-explorer/block/5e59407ca87609fa32811c54100b4f41f8622a9f79ed7c38ebca50bf6968f882

https://explorer.as.hdactech.com/hdac-explorer/block/aceea4214d715f29f014fbe53bfa34ad0f985a174c7c99861dc802933106c8aa

-

https://github.com/Hdactech/hdac/issues/5#issuecomment-423830383

lambda2003 commented 5 years ago

Hdac core doesn't sync correctly. reindex option enabled. It just stop syncing at block(138421). Below is my core info .

Any advice or suggestion??

"version" : "1.06.0", "protocolversion" : 20000, "chainname" : "hdac", "protocol" : "hdac", "nodeaddress" : "hdac@10.xxx.xxx.xxxx:8823", "burnaddress" : "HJXXXXXXXXXXXXXXXXXXXXXXXXXXVarS5i", "balance" : xxxxx, "reindex" : false, "blocks" : 138421, "chain-blocks" : 140005, "block sync(%)" : 98, "timeoffset" : 0, "connections" : 9, "proxy" : "", "difficulty" : 166284.24145220, "testnet" : false, "keypoololdest" : 1536913983, "keypoolsize" : 2, "paytxfee" : 0.00000000, "relayfee" : 0.01000000, "errors" : ""

debug file: 2018-09-27 05:17:21 ERROR: ContextualCheckBlockHeader : 619d299905d761630112a9d4896e42b4d345e187676e55313931d8260b5dba02 rejected - invalid branch 2018-09-27 05:17:21 ERROR: invalid header received 2018-09-27 05:17:22 Set Difficulty: (344443) 2018-09-27 05:17:22 Block is on branch containing invalid block b9e844612e40e5b4adaccf95a5a2dbed0a885710f0ee808a9db5389fd93c36be (height 138420) 2018-09-27 05:17:22 ERROR: ContextualCheckBlockHeader : 619d299905d761630112a9d4896e42b4d345e187676e55313931d8260b5dba02 rejected - invalid branch 2018-09-27 05:17:22 ERROR: invalid header received 2018-09-27 05:17:23 Set Difficulty: (344443) 2018-09-27 05:17:23 Block is on branch containing invalid block b9e844612e40e5b4adaccf95a5a2dbed0a885710f0ee808a9db5389fd93c36be (height 138420) 2018-09-27 05:17:23 ERROR: ContextualCheckBlockHeader : 619d299905d761630112a9d4896e42b4d345e187676e55313931d8260b5dba02 rejected - invalid branch 2018-09-27 05:17:23 ERROR: invalid header received 2018-09-27 05:17:23 Set Difficulty: (344443) 2018-09-27 05:17:23 Block is on branch containing invalid block b9e844612e40e5b4adaccf95a5a2dbed0a885710f0ee808a9db5389fd93c36be (height 138420) 2018-09-27 05:17:23 ERROR: ContextualCheckBlockHeader : 619d299905d761630112a9d4896e42b4d345e187676e55313931d8260b5dba02 rejected - invalid branch 2018-09-27 05:17:23 ERROR: invalid header received

yasielpuig commented 5 years ago

Please try again with the following procedure.

  1. hdac-cli hdac stop
  2. rm -rf /mnt/data/hdac/.hdac/hdac/peers.dat
  3. hdacd hdac@seed.as.hdactech.com:8823 -daemon -connect=seed.as.hdactech.com -listen=1 -reindex=1

--> Restart daemon normally after block-synchronization is complete

  1. hdac-cli hdac stop
  2. hdacd hdac@seed.as.hdactech.com:8823 -daemon
lambda2003 commented 5 years ago

@yasielpuig It works.... :) thank you.