Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown. Syncing Headers 501450 #15

Open
ssnake opened this issue Dec 30, 2017 · 23 comments
Open

Unknown. Syncing Headers 501450 #15

ssnake opened this issue Dec 30, 2017 · 23 comments

Comments

@ssnake
Copy link

ssnake commented Dec 30, 2017

I wonder why this is stopped on header 501450
screenshot from 2017-12-30 09-14-43

@ilia2s
Copy link

ilia2s commented Jan 1, 2018

same problem

@wanghaoqd
Copy link

wanghaoqd commented Jan 2, 2018

qq 20180102093847
same problem here. stuck at 501450

@ilia2s
Copy link

ilia2s commented Jan 2, 2018

synced successfully with correct nodes
addnode=46.4.116.70
addnode=136.243.111.195
addnode=138.201.122.203
addnode=46.4.116.70
addnode=46.28.207.57
addnode=89.163.216.76

@wanghaoqd
Copy link

@ilia2s Problem solved. Thank you!

@antonhappel
Copy link

@ilia2s does not work for me... still not syncing

@alikazango
Copy link

@ilia2s @wanghaoqd Guys, how to use those codes? Please help me

@sniperdelta
Copy link

@alikazango Add the code to the bitcoin2x.conf file in wallet directory

@alikazango
Copy link

@sniperdelta Guy, please write me on my email. zangurashvilialeqsandre@gmail.com Please I need your help. Thank you very much

@mediageni
Copy link

mediageni commented Jan 6, 2018

how can we sync this. it stopped at 501450 also added nodes.
99.19% IT HANGS

addnode=46.4.116.70
addnode=136.243.111.195
addnode=138.201.122.203
addnode=46.4.116.70
addnode=46.28.207.57
addnode=89.163.216.76

@adamhiggins1
Copy link

@sniperdelta hi sniper i cant find that file theres no conf file in the app data for me, if i just create one and put that in there is that ok?

@alikazango
Copy link

alikazango commented Jan 6, 2018 via email

@sniperdelta
Copy link

sniperdelta commented Jan 7, 2018 via email

@shahzeb4u
Copy link

  1. Open "Bitcoin2x Core - Wallet"

  2. Click Settings>Options>Open Configuration File

  3. Add the following lines:
    addnode=46.4.116.70
    addnode=136.243.111.195
    addnode=138.201.122.203
    addnode=46.4.116.70
    addnode=46.28.207.57
    addnode=89.163.216.76

  4. Save the file. You'll notice "bitcoin2x.conf" file created in your wallet directory.

  5. Close the "Bitcoin2x Core - Wallet"

  6. Open the "Bitcoin2x Core - Wallet" again

  7. Let it synchronise again, it may take long time for syncing.

  8. Done ✅

@sniperdelta
Copy link

sniperdelta commented Jan 9, 2018 via email

@jetic83
Copy link

jetic83 commented Jan 14, 2018

added those nodes to my bitcoin2x.config (which was empty before) but does not continue syncing. I hangs now at header 503449 (Dec 28, 13:00:28 2017)

@NoWay426
Copy link

@shahzeb4u Thanks for the instructions.

I'm still stuck syncing at Block 501450.

I added/saved/restarted using your suggested nodes in the bitcoin2x.conf file. I opened the file with Notepad (Windows 10), wondering if I need a different editor, maybe that's why it didn't work? Those nodes not showing up in Peers.

Also tried manually adding these nodes in Console. Ex:

addnode 136.243.111.195 add
Error: Node already added (code -23)

(although I don't see this node connected in Peers)

Debug Log:

2018-01-15 18:14:35 ERROR: invalid header received
2018-01-15 18:14:35 ProcessMessages(headers, 162003 bytes) FAILED peer=11
2018-01-15 18:14:36 ERROR: AcceptBlockHeader: Consensus::ContextualCheckBlockHeader: 0000000000000000004b269ece007638e0992a83ac12210565a45d101544dae2, not-hardfork, incorrect block version (code 16)

@AndyD87
Copy link

AndyD87 commented Jan 15, 2018

@NoWay426

I had the same problem, but now i fixed it by changing "addnode" to "connect" and adding ip's from here: https://bitcointalk.org/index.php?topic=2595620.1340.

connect=136.243.147.159
connect=136.243.111.195
connect=138.201.122.203
connect=node1.b2x-segwit.io
connect=node2.b2x-segwit.io
connect=node3.b2x-segwit.io
connect=178.79.79.233
connect=46.28.207.57
connect=46.4.116.70
connect=67.205.165.171
connect=51.255.83.111
connect=52.221.217.94
connect=76.85.20.142
connect=136.243.171.156
connect=62.183.22.50
connect=136.243.147.159

Later you should change back to addnode, otherwise you will connect exlusive to peers in list above!

@NoWay426
Copy link

NoWay426 commented Jan 16, 2018

@AndyD87 thanks! I was able to connect to those nodes. Unfortunately I started a reindex before I saw your message, so I won't know if it worked for a day or two.

Separate question: right now the reindex is happening - "Processing blocks on disk" NOT syncing to peers, I'm concerned since I'm using the same block data as before (when the error at 0000000000000000004b269ece007638e0992a83ac12210565a45d101544dae2 happened) then it will just happen again. Do I need to use

invalidateblock 0000000000000000004b269ece007638e0992a83ac12210565a45d101544dae2

so that it syncs with the correct nodes at that point?

@AndyD87
Copy link

AndyD87 commented Jan 16, 2018

@NoWay426 I don't know the details of Bitcoin2x, so this is what i suspect about this "bug":

We stuck at Block 501450 because 501451 is the first Bitcoin2x block.
Until this index the blockchain was the same like the original Bitcoin blockchain, and until 501450 Bitcoin and Bitcoin2x peers are connected with your client. The Problem for next blocks, the most of connected peers are still Bitcoin peers, not Bitcoin2x peers.
When your client queries for block 501451, you will receive the block 501451 from original Bitcoin chain wich doesn't match the conditions of Bitcoin2x:
0000000000000000004b269ece007638e0992a83ac12210565a45d101544dae2
It's important to remove all Bitcoin peers to get the one and only 501451 from Bitcoin2x. That's what "connect" does, because you are defining Bitcoin2x manually.

If im right, than invalidate block does not help, because your client queries again for block 501451 and it will receive the wrong from Bitcoin peers again and not the right one from the Bitcoin2x peers.

I hope, everything was understandable ;)

@NoWay426
Copy link

@AndyD87 yes that all makes sense, thanks.

Here's my question: right now I am reindexing from the block data that I already downloaded on my first try, when I was connected to both Bitcoin & B2X peers and received the wrong block 501451. Although I am now exclusively connected to B2X peers (from the list provided above by you!) I am NOT resyncing from scratch, simply processing blocks from the data that I already had.

My concern is that the same error will occur at Block 501451, because it's drawing from the same block data on my disk, not pulling from peers. Can I prevent this from happening using invalidateblock or some other method? Or will B2X automatically solve this because I am now connected to the proper peers?

Appreciate your replies!

@AndyD87
Copy link

AndyD87 commented Jan 16, 2018

@NoWay426 It should correct it itself.

The block was illegal for b2x, so it should not be saved on your blockchain on disk.
You just need to restart your client with new config and all should work.

One additional thing i did was to delete the "peers.dat", so the client does not know any old peers.

@levanqartveli
Copy link

thank, I found all this helpfull.
thank @AndyD87

@NoWay426
Copy link

NoWay426 commented Jan 18, 2018

@AndyD87 EDIT: restarted, and it's working! Thanks for you help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests