NXT Release NRS v1.10.1




  • Release 1.10.1



    https://bitbucket.org/JeanLucPicard/nxt/downloads/...



    sha256:



    fd4ac1811a7fa968356d0391988c9a08f796748324e8cb43124b7f6b0c683823
    nxt-client-1.10.1.zip



    https://bitbucket.org/JeanLucPicard/nxt/downloads/...



    sha256:



    9b928a253227f4c68245f6b5c3fc0eea67224858100e4ad0c0317361f541c061
    nxt-client-1.10.1.sh



    https://bitbucket.org/JeanLucPicard/nxt/downloads/...



    https://bitbucket.org/JeanLucPicard/nxt/downloads/...



    The exe, dmg, and sh packages must have a digital signature by "Stichting
    NXT".





    Change log:



    This release adds transaction replay protection, to be enabled at the hard fork

    scheduled for block 1,000,000. Upgrading to 1.10.1 or later before that block

    is mandatory for all.



    The ecBlockId and ecBlockHeight transaction fields, previously populated but

    not used, will begin to be used for enforcing that a transaction submitted on

    one blockchain or fork will not be accepted on another blockchain or fork that

    shares the same code. These fields by default will be set to a block 720 blocks

    behind the last block at the time the transaction is created, and transactions

    will only be accepted if their ecBlockId and ecBlockHeight values point to an

    existing block when they are included in the blockchain. This default setting

    provides protection against replaying the transaction on a hard fork that has

    diverged more than 720 blocks from the one where the transaction was created.



    Light clients that have no way of verifying the ecBlock values returned by a

    remote node will use hardcoded values, to be updated manually at some releases.

    Transactions from legacy light clients that leave eBlockId and height set to 0

    will still be accepted, but cannot benefit from such replay protection.



    All CreateTransaction APIs now accept additional ecBlockId and ecBlockHeight

    parameters, allowing the default values to be overridden by the client.



    Minor bugfixes and UI improvements.



    Updated Jetty to version 9.3.11, delete the old lib folder before unpacking on

    top.





    -----BEGIN PGP SIGNATURE-----



    iQIcBAEBCgAGBQJXq0cAAAoJENqvaxkWiP4ZfPAQANqR3760FscXaV0zIQ8yFLYK

    muUjnHG4/vflG8HEVIe89Ujsi9EE7Kkbv6/R7GprterKFbpBMlroxon9oX0ex3xj

    IOHhcJEQsrLslu8lTxhX5/ggJCkKCWnohK7w04ch1P/AJrDsbtgJoGMrhsnkUNb6

    qael5Shm+/KNEfVsUVRo0NzWTOS+WyBsdpbFyiGX4lqrACe8wMS1Wz8rBcQa1hPe

    SwWAUtt81PfaAbCNSXo2SA+/09Fj2UZ1I6YNwGFLVQYi+KmtppwUBGrn2BhewWhI

    jrTlgff2jqGfU8EnhjGMrZpKgqtTXWGbaPqy/vOrv0kQqFfXTO8OaeuPl+CidTJO

    JoHMc3HYw4e+sekAgHb/XzJAmriE0JC8JeY1ueLwaHwA+CGxdFfPHlupnMWqNe7H

    djUpCZMpg0Fiy2N1KCZnGJAqjlW2US259TtkjtfiqD8XunxPyqAZ9FywU4n2mlI7

    1GGwcN+ijYOnIt/F5tSMsxh6WE2DQk7zUOYpJbKhTQtr9k6+c3d9uq/6jZJDtHr7

    imObpa1HrLCl9z8HefqINNDa7NXB07iNiSq/vdxaAwSH43toyrTLpeshpDKcK+9+

    LkzaCJNfuyXTNlnhjoIlKtTl357rbzaJRsbW8fj3iw8pqfbTs9aPjgfklZaHxH+P

    opqlEGyOAT5EqLZZCVa6

    =tZIn

    -----END PGP SIGNATURE-----

    Code: [Select]

    pub 4096R/E1E4240C 2015-07-29 [expired: 2016-07-28]
    uid [ expired] Jean-Luc Picard (Lead Developer of The Nxt Generation) <[email protected]>
    uid [ expired] Jean-Luc Picard (Lead Developer of The Nxt Generation) <[email protected]>
    uid [ expired] Jean-Luc Picard (Lead Developer of The Nxt Generation) <[email protected]>

    Script to start NRS (start-nxt)

    Code: [Select]

    #!/bin/sh
    #############
    # Start NRS #
    #############

    cd /home/ubuntu/nxt

    if [ -f logs/nxt.log.lck ] ; then
    echo "NRS is already running"
    exit 1
    fi

    if [ -f logs/nxt.log ] ; then
    mv logs/nxt.log logs/nxt.log.bak
    fi

    nohup java -Dnxt.type=mainnet -Xmx784m -cp "classes:lib/*:conf" nxt.Nxt 1>/dev/null 2>&1 &
    exit $?


    Script to stop NRS (stop-nxt)

    Code: [Select]

    #!/bin/sh
    #######################
    # Stop the NRS server #
    #######################

    PID=`ps -f -u ubuntu | grep -v grep | grep nxt.type=mainnet | tr -s ' ' | cut -f 2 -d ' '`
    if [ -z "$PID" ] ; then
    echo "NRS is not running"
    exit 1
    fi
    echo "Stopping NRS $PID"
    kill $PID
    exit 0


    Script to display the NRS log (show-nxt)

    Code: [Select]

    #!/bin/sh
    #########################################
    # Show the last 50 lines of the NRS log #
    #########################################

    tail -n 50 /home/ubuntu/nxt/logs/nxt.log
    exit $?


    Script to compact the NRS database (compact-nxt)

    Code: [Select]

    #!/bin/sh
    ############################
    # Compact the NRS database #
    ############################

    cd /home/ubuntu/nxt

    if [ -f logs/nxt.log.lck ] ; then
    echo "NRS is running"
    exit 1
    fi

    if [ -f logs/nxt.log ] ; then
    mv logs/nxt.log logs/nxt.log.bak
    fi

    java -Xmx768m -cp "classes:lib/*:conf" nxt.tools.CompactDatabase
    exit $?


    Script to start forging (start-forging). You need to replace YOUR-SECRET-PHRASE with the secret phrase for the forging account.

    Code: [Select]

    #!/bin/sh
    #################
    # Start forging #
    #################

    SECRET='YOUR-SECRET-PHRASE'
    curl --data "requestType=startForging" --data-urlencode "secretPhrase=$SECRET" http://localhost:7876/nxt
    echo
    exit $?

    NXT-XM86-4ZNA-65L5-CDWUE

    gh

    • Full Member
    • ***
    • OfflineOffline
    • Posts: 133

    ·

      • View Profile
      • NXT Chart
    • Karma: +14/-0

    Re:
    NRS v1.10.1

    August 11, 2016, 05:15:08 am


    Thanks for the scripts, ScripterRon :-)
    Regarding curl, it is not installed by default on Ubuntu 16.04, so I had to:

    Code: [Select]

    sudo apt-get update
    sudo apt-get install curl

    I assume that the NXT-account to forge is extracted from the secret phrase? If I have two NXT-accounts which I want to forge with on the same server, I can simply extend your script as follows:

    Code: [Select]

    #!/bin/sh
    #################
    # Start forging #
    #################

    SECRET1='YOUR-SECRET-PHRASE-ACCOUNT-1'
    SECRET2='YOUR-SECRET-PHRASE-ACCOUNT-2'
    curl --data "requestType=startForging" --data-urlencode "secretPhrase=$SECRET1" http://localhost:7876/nxt
    curl --data "requestType=startForging" --data-urlencode "secretPhrase=$SECRET2" http://localhost:7876/nxt
    echo
    exit $?

    The server update can now be automated:

    Code: [Select]

    ./stop-nxt
    wget https://bitbucket.org/JeanLucPicard/nxt/downloads/...
    rm -rf nxt/lib
    unzip nxt-client-1.10.1.zip #(answer A for [A]ll)
    ./start-nxt
    sleep 60
    ./start-forging

    Script to start NRS (start-nxt)

    Code: [Select]

    #!/bin/sh
    #############
    # Start NRS #
    #############

    cd /home/ubuntu/nxt

    if [ -f logs/nxt.log.lck ] ; then
    echo "NRS is already running"
    exit 1
    fi

    if [ -f logs/nxt.log ] ; then
    mv logs/nxt.log logs/nxt.log.bak
    fi

    nohup java -Dnxt.type=mainnet -Xmx784m -cp "classes:lib/*:conf" nxt.Nxt 1>/dev/null 2>&1 &
    exit $?


    Script to stop NRS (stop-nxt)

    Code: [Select]

    #!/bin/sh
    #######################
    # Stop the NRS server #
    #######################

    PID=`ps -f -u ubuntu | grep -v grep | grep nxt.type=mainnet | tr -s ' ' | cut -f 2 -d ' '`
    if [ -z "$PID" ] ; then
    echo "NRS is not running"
    exit 1
    fi
    echo "Stopping NRS $PID"
    kill $PID
    exit 0


    Script to display the NRS log (show-nxt)

    Code: [Select]

    #!/bin/sh
    #########################################
    # Show the last 50 lines of the NRS log #
    #########################################

    tail -n 50 /home/ubuntu/nxt/logs/nxt.log
    exit $?


    Script to compact the NRS database (compact-nxt)

    Code: [Select]

    #!/bin/sh
    ############################
    # Compact the NRS database #
    ############################

    cd /home/ubuntu/nxt

    if [ -f logs/nxt.log.lck ] ; then
    echo "NRS is running"
    exit 1
    fi

    if [ -f logs/nxt.log ] ; then
    mv logs/nxt.log logs/nxt.log.bak
    fi

    java -Xmx768m -cp "classes:lib/*:conf" nxt.tools.CompactDatabase
    exit $?


    Script to start forging (start-forging). You need to replace YOUR-SECRET-PHRASE with the secret phrase for the forging account.

    Code: [Select]

    #!/bin/sh
    #################
    # Start forging #
    #################

    SECRET='YOUR-SECRET-PHRASE'
    curl --data "requestType=startForging" --data-urlencode "secretPhrase=$SECRET" http://localhost:7876/nxt
    echo
    exit $?

    NXT-XM86-4ZNA-65L5-CDWUE

    gh

    • Full Member
    • ***
    • OfflineOffline
    • Posts: 133

    ·

      • View Profile
      • NXT Chart
    • Karma: +14/-0

    Re:
    NRS v1.10.1

    August 11, 2016, 05:15:08 am


    Thanks for the scripts, ScripterRon :-)
    Regarding curl, it is not installed by default on Ubuntu 16.04, so I had to:

    Code: [Select]

    sudo apt-get update
    sudo apt-get install curl

    I assume that the NXT-account to forge is extracted from the secret phrase? If I have two NXT-accounts which I want to forge with on the same server, I can simply extend your script as follows:

    Code: [Select]

    #!/bin/sh
    #################
    # Start forging #
    #################

    SECRET1='YOUR-SECRET-PHRASE-ACCOUNT-1'
    SECRET2='YOUR-SECRET-PHRASE-ACCOUNT-2'
    curl --data "requestType=startForging" --data-urlencode "secretPhrase=$SECRET1" http://localhost:7876/nxt
    curl --data "requestType=startForging" --data-urlencode "secretPhrase=$SECRET2" http://localhost:7876/nxt
    echo
    exit $?

    The server update can now be automated:

    Code: [Select]

    ./stop-nxt
    wget https://bitbucket.org/JeanLucPicard/nxt/downloads/...
    rm -rf nxt/lib
    unzip nxt-client-1.10.1.zip #(answer A for [A]ll)
    ./start-nxt
    sleep 60
    ./start-forging


Looks like your connection to Cryptocentral was lost, please wait while we try to reconnect.