Welcome, Guest. Please login or register.

Author Topic: How to get a stable blockchain? Adding peers to your web.xml file!  (Read 2097 times)

0 Members and 1 Guest are viewing this topic.

Offline punkrock

  • Global Moderator
  • Established Nxter
  • *****
  • Posts: 207
  • Admin of NXTpool.net
    • View Profile
    • Latest NXT update for Windows
Sometimes your client stops getting new blocks. It may help to add some good peers.

Open the file web.xml (located at \NextCoin\webapps\root\WEB-INF) with an editor like Notepad++ and add good peers at "wellKnownPeers". I will update the example below from time to time.

EasyCopyString (updated 2013/12/31):
Code: [Select]
<init-param>
<param-name>wellKnownPeers</param-name>
<param-value>node94.nxtbase.com; 209.222.16.10; node95.nxtbase.com; node4.nextcoin.it; node5.nxtbase.com; nxt20.tweetmondo.com; vps3.nxtcrypto.org; node2.nextcoin.it; 162.243.214.68; nxt02.now.im; 162.243.223.161; node50.nxtbase.com; nxt01.now.im; 85.25.134.59; node8.nxtbase.com; node63.nxtbase.com; node96.nxtbase.com; node18.nxtbase.com; 95.85.46.249; node65.nxtbase.com; node36.nxtbase.com; nxt12.tweetmondo.com; nxt23.tweetmondo.com; nxt14.tweetmondo.com; 80.86.92.50;</param-value>
</init-param>



Detailed instructions
(THX to Pablito89)

1. Close your java process (if it's running)
2. Go to the following directory nxt/webapps/root/WEB-INF/
3. Open web.xml with a text editor
4. Find this line:
Code: [Select]
<param-name>wellKnownPeers</param-name>5. Copy & paste the IPs from the EasyCopyString (see above) between <param-value>HERE</param-value>
6. It will looks like:
Code: [Select]
<param-name>wellKnownPeers</param-name>
<param-value>node94.nxtbase.com; 209.222.16.10; node95.nxtbase.com; node4.nextcoin.it; node5.nxtbase.com; nxt20.tweetmondo.com; vps3.nxtcrypto.org; node2.nextcoin.it; 162.243.214.68; nxt02.now.im; 162.243.223.161; node50.nxtbase.com; nxt01.now.im; 85.25.134.59; node8.nxtbase.com; node63.nxtbase.com; node96.nxtbase.com; node18.nxtbase.com; 95.85.46.249; node65.nxtbase.com; node36.nxtbase.com; nxt12.tweetmondo.com; nxt23.tweetmondo.com; nxt14.tweetmondo.com; 80.86.92.50;</param-value>
7. Save & restart Java process



Automatic Public Nodes Update Script
(THX to davethetrousers)

Downloads: publicNodes.txt & updatePublicNodes.py.

I just wrote a simple python script that fetches a list of public servers I collect in a text file and puts them into the NXT server config.
Usage is quite simple. The only prerequisite is to have a symlink to the config file (web.xml) in the NXT rootdir:

Code: [Select]
~/nxt$ ln -s webapps/root/WEB-INF/web.xml configfile
I find this more elegant than drilling down into the dir explicitly. If you do not like this very much, alter the configFilename variable in the script.
When ready, just start the script:

Code: [Select]
python updatePublicNodes.py
Hope this reduces some hassle for node admins.
« Last Edit: February 12, 2014, 01:56:53 PM by punkrock »
NXTpool.net     NXTclient.net     NeXTcoin.org

Offline opticalc

  • Senior Nxter
  • ****
  • Posts: 312
    • View Profile
Re: How to get a stable blockchain?
« Reply #1 on: December 26, 2013, 02:40:24 AM »
most of the time all 1 - 5 of my hosts vps1.nxtcrypto.org are good for a blockchain download as well.  add all 5 vps1 vps2 vps3 vps4 vps5
NXT donation acct: 6666386410

Offline seek4dream

  • Fresh Nxter
  • *
  • Posts: 8
    • View Profile
Re: How to get a stable blockchain?
« Reply #2 on: December 26, 2013, 07:03:13 AM »
I did just as you told, but it is still stuck at block 24512.
Any suggestion? my version is 0.4.4
« Last Edit: December 26, 2013, 09:39:53 AM by punkrock »

Offline BloodyRookie

  • Fresh Nxter
  • *
  • Posts: 33
    • View Profile
Re: How to get a stable blockchain?
« Reply #3 on: December 26, 2013, 09:15:29 AM »
Upgrade to 0.4.7e and manually boot any peer that is running an older version.
nxt: 11095639652683007953

Offline punkrock

  • Global Moderator
  • Established Nxter
  • *****
  • Posts: 207
  • Admin of NXTpool.net
    • View Profile
    • Latest NXT update for Windows
Re: How to get a stable blockchain?
« Reply #4 on: December 26, 2013, 09:41:44 AM »
@seek4dream: You can download the current version for Windows here.
NXTpool.net     NXTclient.net     NeXTcoin.org

Offline zappadave

  • Nxter
  • **
  • Posts: 67
    • View Profile
    • Nxt-News
Re: How to get a stable blockchain? Adding peers to your web.xml file!
« Reply #5 on: December 28, 2013, 12:03:39 AM »
Well known peers are being blacklisted.
Any ideas as to why?

Dave
www.nxt-news.com/
[email protected]
Donations: 10678009465580317397

Offline davethetrousers

  • Fresh Nxter
  • *
  • Posts: 35
  • the NXT one to come
    • View Profile
Re: How to get a stable blockchain? Adding peers to your web.xml file!
« Reply #6 on: December 28, 2013, 12:19:44 AM »
Seeing some being BL'd on and off as well. I think we can disregard. Probable causes imho:

Connecting took longer than defined in config, no more connections possible for either side, node down altogether & similar things ...
Complete package to efficiently run the NXT server on your Raspberry Pi
Serving a public NXT node at 109.230.224.65 in Germany
NXT 14923118471272229432

Offline ZeroTheGreat

  • Established Nxter
  • ***
  • Posts: 264
    • View Profile
Thread: Main
« Reply #7 on: December 28, 2013, 02:41:02 AM »
I also advise to increase ~ConnecterPeers in some times.

Offline zappadave

  • Nxter
  • **
  • Posts: 67
    • View Profile
    • Nxt-News
Re: Thread: Main
« Reply #8 on: December 28, 2013, 05:57:44 AM »
I also advise to increase ~ConnecterPeers in some times.
How?
www.nxt-news.com/
[email protected]
Donations: 10678009465580317397

Offline gsxrl3oi

  • Nxter
  • **
  • Posts: 92
    • View Profile
Re: How to get a stable blockchain? Adding peers to your web.xml file!
« Reply #9 on: December 31, 2013, 10:11:57 PM »
Youtube tutorial would be great. thanks boss

Offline joefox

  • Senior Nxter
  • ****
  • Posts: 393
    • View Profile
    • The Nxt Wiki
Re: How to get a stable blockchain? Adding peers to your web.xml file!
« Reply #10 on: January 01, 2014, 03:44:23 AM »
The term "blacklist" is a bit of a misnomer.  A blacklisted node is just one that has recently disconnected from the network and is being removed from the current list of peers. 

"blacklist" doesn't mean "banned".

And yes, they should change the term!
Administrator of the Nxt Wiki at  http://wiki.nxtcrypto.org/

Like my advice OR the wiki? Please donate to account 1234567740944417915

Offline bitcoinstrading

  • Fresh Nxter
  • *
  • Posts: 3
    • View Profile
Re: How to get a stable blockchain? Adding peers to your web.xml file!
« Reply #11 on: February 07, 2014, 06:28:20 PM »
I'm getting the following error msg:
DEBUG: Failed to accept block received from .........., blacklisting
DEBUG: Failed to accept block received from .........., blacklisting
DEBUG: Failed to accept block received from .........., blacklisting
DEBUG: Failed to accept block received from .........., blacklisting

Any suggestions?

Offline AcidBurn

  • Fresh Nxter
  • *
  • Posts: 1
    • View Profile
Re: How to get a stable blockchain? Adding peers to your web.xml file!
« Reply #12 on: February 08, 2014, 12:06:54 PM »
I'm getting the following error msg:
DEBUG: Failed to accept block received from .........., blacklisting
DEBUG: Failed to accept block received from .........., blacklisting
DEBUG: Failed to accept block received from .........., blacklisting
DEBUG: Failed to accept block received from .........., blacklisting

Any suggestions?

I have the same problem.

Offline punkrock

  • Global Moderator
  • Established Nxter
  • *****
  • Posts: 207
  • Admin of NXTpool.net
    • View Profile
    • Latest NXT update for Windows
Re: How to get a stable blockchain? Adding peers to your web.xml file!
« Reply #13 on: February 12, 2014, 01:56:37 PM »
No longer needed.

*closed*
NXTpool.net     NXTclient.net     NeXTcoin.org