elective-stereophonic
elective-stereophonic
I created a new coin based on NXT, but the wallet can not downloading blockchain
singapore
Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest Stable Nxt Client: Nxt 1.12.1 Upgrade before block 2870000 is mandatory!

Author Topic: I created a new coin based on NXT, but the wallet can not downloading blockchain  (Read 2371 times)

slaxman

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 5
    • View Profile

1. Finished generate a new Genesis Block , should be no problem, I can login wallet to see the transactions.
2, can not foring new block, it told me need to wait all blockchain downloaded.
3. the blockchain downloading is very very slow, then I updated the thread pool speed , speed is up, but still can not finish block downloading.
4. if update the speed, when finished download, seems stop here:

     if (betterCumulativeDifficulty.equals(curCumulativeDifficulty)) { // they are  same.
                    return;
    }

anyone can help me. thank you very much.
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile

I assume you changed the peer-to-peer port to something other than 7874.  When I was testing using my own blockchain, I started forging from the command line and not in the browser.  If you have a single node in your network, then your local node is unable to determine the current blockchain height since it has no peer nodes.

The following shell script can be used to start forging from the command line:

Code: [Select]
#!/bin/sh
SECRET='YOUR-PASSPHRASE'
curl --data "requestType=startForging" --data-urlencode "secretPhrase=$SECRET" http://localhost:7876/nxt
echo
exit 0
Logged

slaxman

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 5
    • View Profile

Hi,ScripterRon
  thanks very much for your reply, I tried to read the code, seems the initial parameters is not suitable for a new one, like TRANSPARENT_FORGING_BLOCK=30000, need to change some code. otherwise , your script is also not working.
  still trying to solve it. btw, to setup the new coin sys, how much nodes do I need to setup?

thanks again.
Logged

ScripterRon

  • Hero Member
  • *****
  • Karma: +75/-2
  • Offline Offline
  • Posts: 523
    • View Profile

Hi,ScripterRon
  thanks very much for your reply, I tried to read the code, seems the initial parameters is not suitable for a new one, like TRANSPARENT_FORGING_BLOCK=30000, need to change some code. otherwise , your script is also not working.
  still trying to solve it. btw, to setup the new coin sys, how much nodes do I need to setup?

thanks again.
You definitely need to change a number of the threshold parameters since they are set based on the official block chain.  If I remember correctly, several of the Java methods also needed updates.

You don't need any additional nodes.  I have run an alternate blockchain with a single node (forging started via script).  The forging script I quoted is for Linux and uses curl.  You might need to install curl since it is not in every Linux distribution.

If you are doing this as a business, you should contact Jean-Luc to license a private version of Nxt with alternate blockchain support.
Logged

slaxman

  • Newbie
  • *
  • Karma: +0/-0
  • Offline Offline
  • Posts: 5
    • View Profile

Hi,ScripterRon
  thanks very much for your reply, I tried to read the code, seems the initial parameters is not suitable for a new one, like TRANSPARENT_FORGING_BLOCK=30000, need to change some code. otherwise , your script is also not working.
  still trying to solve it. btw, to setup the new coin sys, how much nodes do I need to setup?

thanks again.
You definitely need to change a number of the threshold parameters since they are set based on the official block chain.  If I remember correctly, several of the Java methods also needed updates.

You don't need any additional nodes.  I have run an alternate blockchain with a single node (forging started via script).  The forging script I quoted is for Linux and uses curl.  You might need to install curl since it is not in every Linux distribution.

If you are doing this as a business, you should contact Jean-Luc to license a private version of Nxt with alternate blockchain support.

you are right, we do need to update java method and parameters, and thanks for the suggestion of license, I will contact Jean-Luc later.
Logged
 

elective-stereophonic
elective-stereophonic
assembly
assembly