Author

Topic: NXT :: descendant of Bitcoin - Updated Information - page 314. (Read 2761645 times)

sr. member
Activity: 336
Merit: 250
AKA jefdiesel
http://nxtra.org/nxt-client/ looks like a real nxt acc without visible in-app warnings. But it is a testnet, right? It bothers me

does say right on the front page

Quote
Log in with your TestNet account - not your real one!
hero member
Activity: 490
Merit: 504
http://nxtra.org/nxt-client/ looks like a real nxt acc without visible in-app warnings. But it is a testnet, right? It bothers me
sr. member
Activity: 336
Merit: 250
AKA jefdiesel
not working now..

Code:
connect() failed: Connection refused
connection variant.0 failure
error submitting results to (162.217.204.142) retval -1 vs 48 -> switch to (162.217.204.144)
NEW block.(2427680280895981793) vs lastblock.(13833505500464351431)
0: GOOD PEER.0 (2901759 458677) 109.87.169.253 state.1 blacklist.false share.true announce.109.87.169.253 downloaded.290156651 uploaded.18444708
1: GOOD PEER.1 (253198 327999) 162.217.203.106 state.1 blacklist.false share.true announce.162.217.203.106 downloaded.1088124 uploaded.1316131
2: GOOD PEER.2 (36715 191156) 162.217.204.38 state.1 blacklist.false share.true announce.162.217.204.38 downloaded.3250738 uploaded.6157631
3: GOOD PEER.3 (2944190 191366) 138.91.4.52 state.1 blacklist.false share.true announce.testnxt-jp.cloudapp.net downloaded.128051412 uploaded.6176910
4: GOOD PEER.4 (167913 195465) 107.170.226.230 state.1 blacklist.false share.true announce.node10.mynxtcoin.org downloaded.9732909 uploaded.137761789
5: GOOD PEER.5 (148816 202070) 162.243.126.110 state.1 blacklist.false share.true announce.node9.mynxtcoin.org downloaded.26166168 uploaded.10190513
6: GOOD PEER.6 (65062 190529) 209.126.73.166 state.1 blacklist.false share.true announce.209.126.73.166 downloaded.2054511 uploaded.6124137
7: GOOD PEER.8 (36801 191596) 209.126.75.130 state.1 blacklist.false share.true announce.209.126.75.130 downloaded.2027089 uploaded.4608605
8: GOOD PEER.9 (120248 212415) 178.162.198.111 state.1 blacklist.false share.true announce.bug.airdns.org downloaded.578768 uploaded.749405
9: GOOD PEER.10 (90031 114932) 192.241.223.132 state.1 blacklist.false share.true announce.192.241.223.132 downloaded.688219 uploaded.644000
10: GOOD PEER.11 (251528 114690) 209.126.74.120 state.1 blacklist.false share.true announce.209.126.74.120 downloaded.9279095 uploaded.6967156
11: GOOD PEER.12 (292540 85560) 162.217.204.28 state.1 blacklist.false share.true announce.162.217.204.28 downloaded.6786889 uploaded.3289142
12: GOOD PEER.13 (77272 8498) 162.217.202.168 state.1 blacklist.false share.true announce.162.217.202.168 downloaded.2184392 uploaded.181774
13: GOOD PEER.14 (108457 8586) 83.212.110.150 state.1 blacklist.false share.true announce.83.212.110.150 downloaded.4222167 uploaded.146522
14: GOOD PEER.15 (224112 165183) 162.217.204.12 state.1 blacklist.false share.true announce.162.217.204.12 downloaded.6442259 uploaded.3296037
15: GOOD PEER.16 (51539 8712) 209.126.73.128 state.1 blacklist.false share.true announce.209.126.73.128 downloaded.2709012 uploaded.164439
16: GOOD PEER.17 (59406 8637) 162.217.203.174 state.1 blacklist.false share.true announce.162.217.203.174 downloaded.2654224 uploaded.180542
17: GOOD PEER.18 (65715 7992) 209.126.73.160 state.1 blacklist.false share.true announce.209.126.73.160 downloaded.1916314 uploaded.183345
18: GOOD PEER.19 (1560964 2277487) 23.97.135.119 state.1 blacklist.false share.true announce.testnxt-we.cloudapp.net downloaded.101856605 uploaded.41129862
19: GOOD PEER.20 (95447 9150) 209.126.74.122 state.1 blacklist.false share.true announce.209.126.74.122 downloaded.4013920 uploaded.251659
20: GOOD PEER.21 (252716 78371) 162.217.203.16 state.1 blacklist.false share.true announce.162.217.203.16 downloaded.5259173 uploaded.2855958
20: GOOD PEER.22 (2024640 2553411) 137.135.208.131 state.1 blacklist.false share.true announce.testnxt-ne.cloudapp.net downloaded.102871165 uploaded.47500423
numactivepeers.20
connect() failed: Connection refused
full member
Activity: 196
Merit: 100
how can I link Ricky?
No prob, I just tweeted him volunteering - I will let you know if I hear anything, thanks for posting the heads up he was looking for contacts.
sr. member
Activity: 397
Merit: 500
I have hacked together a php script, to get a list of ip addresses that use lower NRS version as your own like 0.5.x etc.

With this list I use iptables/ipset to block these ip addresses.

If there is a other way, pls let me know.
I use "getPeers" and then foreach with "getPeer&peer=x.x.x.x". Is there a faster way?

Here is the php code if someone like it:
Code:

// Your own Node address to check (pls modify to you needs!)
$NodeAddress "192.168.1.22";

// Maximun different Versions from own Version
$DiffVersions 3;

// ------------------------------------------------------------------------

$NodeInfo = array();
$NodeInfo json_decodesend"https://$NodeAddress:7876/nxt?requestType=getState" ) , true );

$NodeInfo['version'] = explode('.'$NodeInfo['version'], 3);
$NodeInfo['version'][2] = str_pad($NodeInfo['version'][2], ,'0'STR_PAD_LEFT);
$NodeInfo['version'] = implode(""$NodeInfo['version']);
$NodeInfo['version'] = intval($NodeInfo['version']);

$MyVersion $NodeInfo['version'];
$DiffVersion $MyVersion $DiffVersions;

echo 
"My version is $MyVersion\n";
echo 
"Minimum Version is set to $DiffVersion\n";


$Peers = array();
$Peers json_decodesend"https://$NodeAddress:7876/nxt?requestType=getPeers" ) , true );

$i 0;

foreach (
$Peers['peers'] as $value){
$IP $value;
$Peer = array();
$Peer json_decodesend"https://$NodeAddress:7876/nxt?requestType=getPeer&peer={$value}) , true );
if ( $Peer['version'] == "" ) {
//print "{$Peer['version']} #:{$i} - No Version\n";
}
else {
$Peer['version'] = explode('.'$Peer['version'], 3);
$Peer['version'][2] = str_pad($Peer['version'][2], ,'0'STR_PAD_LEFT);
$Peer['version'] = implode(""$Peer['version']);
$Peer['version'] = intval($Peer['version']);
if( $Peer['version'] < $DiffVersion && $Peer['application'] = 'NRS') {
print "{$Peer['version']} #:{$i} - Version is smaller $DiffVersion\n";
$datei fopen("bad_ips.txt","a+");
fwrite($datei"$IP\n");
fclose($datei);
}
}
$i++;
}

function 
send$url NULL )
{
$ch curl_init();
curl_setopt($chCURLOPT_URL$url);
curl_setopt($chCURLOPT_HEADERFALSE);
curl_setopt($chCURLOPT_RETURNTRANSFERTRUE);
curl_setopt($chCURLOPT_USERAGENT'Mozilla/4.0 (compatible; PHP client; '.php_uname('s').'; PHP/'.phpversion().')');
curl_setopt($chCURLOPT_SSL_VERIFYPEERFALSE);
curl_setopt($chCURLOPT_FOLLOWLOCATIONTRUE);
$result curl_exec($ch);
curl_close($ch);

return $result;
}

exit();
?>


And here is the iptables script for my RasPI:
Code:
#!/bin/bash

if [ `id -u` != "0" ] ; then
  echo "You must be root to execute this script!"
  exit 1
fi

DEV=wlan0
IPT=/sbin/iptables

cd /home/pi/nxt/
# restore old ipset rules
ipset restore
# add every ip in bad_ips.txt to the ipset rule
for i in `cat /home/pi/nxt/bad_ips.txt`; do sudo ipset add banned_hosts $i ; done

# activate and drop everything from the ipset
$IPT -A INPUT -m set -j DROP --match-set banned_hosts src

# save the current ipset rules
ipset save >/home/pi/nxt/ipset-rules.txt



And here is my traffic shaping script for my RasPI to save bandwidth(homeconnection):
Code:
#!/bin/bash

if [ `id -u` != "0" ] ; then
  echo "You must be root to execute this script!"
  exit 1
fi

DEV=wlan0
IPT=/sbin/iptables
TC=/sbin/tc
$IPT -t mangle -F
$TC qdisc del dev $DEV ingress > /dev/null 2>&1
$TC qdisc del dev $DEV root > /dev/null 2>&1
$TC qdisc del dev lo root > /dev/null 2>&1
$TC qdisc add dev $DEV root handle 1:0 htb default 12 r2q 6
$TC class add dev $DEV parent 1:0 classid 1:1  htb rate 6000kbit ceil 100Mbit
$TC class add dev $DEV parent 1:1 classid 1:10 htb rate 5000kbit ceil 98Mbit prio 0
$TC class add dev $DEV parent 1:1 classid 1:11 htb rate 5000kbit ceil 98Mbit prio 1
$TC class add dev $DEV parent 1:1 classid 1:12 htb rate 5000kbit ceil 98Mbit prio 2
$TC class add dev $DEV parent 1:1 classid 1:13 htb rate 1000kbit ceil 2000kbit prio 3
$IPT -A POSTROUTING -t mangle -o $DEV -p tcp -m length --length :64 -j MARK --set-mark 10
$IPT -A POSTROUTING -t mangle -o $DEV -p udp --dport 53 -j MARK --set-mark 10
$IPT -A POSTROUTING -t mangle -o $DEV -p tcp --dport 22 -j MARK --set-mark 11
$IPT -A POSTROUTING -t mangle -o $DEV -p tcp --sport 22 -j MARK --set-mark 11
$IPT -A POSTROUTING -t mangle -o $DEV -p tcp --dport 7874 -j MARK --set-mark 13
$TC filter add dev $DEV parent 1:0 prio 0 protocol ip handle 10 fw flowid 1:10
$TC filter add dev $DEV parent 1:0 prio 0 protocol ip handle 11 fw flowid 1:11
$TC filter add dev $DEV parent 1:0 prio 0 protocol ip handle 13 fw flowid 1:13
$TC qdisc add dev $DEV parent 1:10 handle 10: sfq perturb 10
$TC qdisc add dev $DEV parent 1:11 handle 11: sfq perturb 10
$TC qdisc add dev $DEV parent 1:12 handle 12: sfq perturb 10
$TC qdisc add dev $DEV parent 1:13 handle 13: sfq perturb 10


My new RasPI NRS start script for verson 0.8.x (pls update the one in wiki!):
Code:
#!/bin/bash
### BEGIN INIT INFO
# Provides:          NXTserver
# Required-Start:    $local_fs $remote_fs $network $syslog $named $sshd
# Required-Stop:    
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start/stop NXT server
### END INIT INFO

if [ `id -u` != "0" ] && [ "$1" = "start" -o "$1" = "stop" ] ; then
  echo "You must be root to start/stop nxt."
  exit 1
fi

# Settings
nxtdir=/home/pi/nxt
nxt=nxt.jar
java=/usr/bin/java
nxtpid=/var/run/nxt.pid
nxtlog=/home/pi/nxt/nxt.log
nxtuser=pi
nxtgroup=pi
nxtnice=19
timeout=700
maxmem=120
# end Settings

# check for exist files and dirs
test -d $nxtdir || exit 0
test -f $nxtdir/$nxt || exit 0
test -f $java || exit 0

# make sure $nxtdir is ours!
chown -R $nxtuser:$nxtgroup $nxtdir

. /lib/lsb/init-functions

function status {

    start-stop-daemon -T --pidfile "$nxtpid" && echo "NXT server is started." \
    || { echo "NXT server is stopped." ; return 1; }

    return 0;
}

case "$1" in
    start)
        log_daemon_msg "Starting NXT server..." "" || true

        # check if server is running
        if [ -e $nxtpid ]; then
            pid=`cat $nxtpid`
            var=`ps -p$pid | wc -l`

            if [ $var -lt "2" ]; then
                # clear logfile
                echo -n > $nxtlog
            else
                echo -n " NXT server is already running!"
                log_end_msg 0 || true
                exit 0
            fi
        fi
        
        # Enable Debug for more info when starting NXT
        if cat $nxtdir/conf/nxt.properties | grep -q  "nxt.debug="; then
            if cat $nxtdir/conf/nxt.properties | grep -q  "nxt.debug=true"; then
                # Debug is enabled, nothing todo...
                echo -n ""
            elif cat $nxtdir/conf/nxt.properties | grep -q  "nxt.debug=false"; then
                echo nxt.debug=true >> $nxtdir/conf/nxt.properties
            fi
        else
            echo nxt.debug=true >> $nxtdir/conf/nxt.properties
        fi
                
        # n minute timeout.
        sleep $timeout &
        timerPid=$!

        # check log file and generate status-msg; will be killed when server is started or timeout hit
        tail -q -n0 -F --pid=$timerPid $nxtlog 2> /dev/null | while read line; do

            if echo $line | grep -q  "Scanning blockchain"; then
                echo -n " Scanning blockchain"            
            elif echo $line | grep -q  "processed block"; then
                echo -n "."            
            fi

            if echo $line | grep -q  "started successfully."; then
                echo -n "NXT server started successfully."
                log_end_msg 0 || true
                # stop the timer..
                kill $timerPid > /dev/null 2>&1
$nxtdir/traffic_shaper.sh > /dev/null 2>&1
            fi
        done &
        
        # start server
        if start-stop-daemon --start --name nxt --nicelevel $nxtnice --chuid $nxtuser:$nxtgroup --pidfile $nxtpid -m --chdir $nxtdir --exec $java >> $nxtlog 2>&1 -- -Xmx"$maxmem"m -cp $nxt:lib/*:conf nxt.Nxt >> $nxtlog 2>&1 & then
            # wait for the timer to expire (or be killed)
            wait %sleep > /dev/null 2>&1
        else
            log_end_msg 1 || true
        fi
        ;;
    stop)
        log_daemon_msg "Stopping NXT server..." || true

        # check if server is running
        if start-stop-daemon --stop --pidfile $nxtpid > /dev/null 2>&1; then
            
            while status > /dev/null; do
                sleep 1;
            done
            
            echo -n " NXT server stopped."
            log_end_msg 0 || true
            rm $nxtpid  > /dev/null 2>&1
        else
            echo -n " NXT server is not running!"
            log_end_msg 0 || true
            exit 0
        fi
        ;;
    restart)
        $0 stop
        sleep 1
        $0 start
        ;;
    status)
        status
        ;;
    *)
        echo "usage:`basename $0` start | stop | restart | status"
        exit 1
        ;;
esac

If anyone find something badly wrong, pls tell me! I'm not a php, linux or iptables expert, but I try to do my best Wink

Greets,
eb
hero member
Activity: 490
Merit: 504
how can I link Ricky?
full member
Activity: 196
Merit: 100
I just proposed to have NxtMinnow on LTB with Andreas Antonopoulos
https://twitter.com/aantonop/status/445268614673752064

Ah, Salsa, I'm mortally wounded (just kidding) you didn't propose me for this.  Didn't I come across well enough in the altcoin panel in Austin? Smiley

full member
Activity: 196
Merit: 100
I say again, WE ARE IGNORING THE CRYPTOCOIN 1.0 FOUNDATION OF NXT AND THIS IS A MISTAKE.  We should be systematically shaking the trees for vendors who will put NXT logos beside their "Bitcoin accepted here" logos (like I see Salsacz doing a few posts back!).  We should be working RELENTLESSLY on increasing TPS as a demo to the world.  IF we build 1000 TPS, they will come.

Sigh... NXT is simply not capable of this right now.. Someone who knows more - please correct me if I'm wrong.

We don't have Transactions-Per-Second, we have Transactions-Per-Block
We have a limit of 250 transactions per block
We have a block every 60 seconds

So no matter how many forging nodes we have we can only process this many transactions which is about 3 TPS with up to 60second latency i.e. up to a 60second delay from when you submitted your transaction to when it was processed, but if more than 250 transactions are broadcast since the last block then you wait for the next block and so on...

Currently if the incoming rate were 1000tps then we would get a 3 minute delay in transaction confirmation which increased every minute by 3 minutes...


THis monster thread is impossible to search but early on BCNext and CfB had some kind of "time warp" plan that was to synchronize the exact iming between blocks, then dial that time down from 60 sec to 30 sec to 20 sec to 10 sec...etc....between blocks and get to 1000 TPS.   It was a byproduct of transparent forging.   Just to show I'm not dreaming this:

Any other coin can have a lot of features but once Nxt switches 1000+ tps mode on, all competitors will be left behind.

CfB, can you PLEASE PLEASE PLEASE go on record here to say what was supposed to happen with the original NXT code development timeline to implement 1000 TPS / time warp / transparent forging?  ?  As I understand it, Jena-Luc is not "up to speed" on TF, only you and BCNext were.  So...can you at least outline what the plan was even if there is no code on how to implement it?  Is this a capability you planned to implement that has dropped to the bottom of the list?  If so, why?

hero member
Activity: 490
Merit: 504
Would you accept Nxt cryptocurrency? Open letter for shops and exchanges
http://justpaste.it/accept-nxt

https://i.imgur.com/36PESUM.jpg
https://i.imgur.com/0GIBHfl.jpg
7th April we'll have the nxt woodwallets

http://woodwallets.io/ (free worldwide shipping)
legendary
Activity: 1092
Merit: 1010
hero member
Activity: 644
Merit: 500
legendary
Activity: 1092
Merit: 1010
Your very first bounty request is:

Please give me a lot of NXT, just for being such a charming motherf****r.

Ta very much.

Dear E. Dave,

Your request does not meet the requirements for accepting your application.
We will be happy to take your request under advisement when you have competed the proper form.

Kind regards,

MC Damelon
sr. member
Activity: 308
Merit: 250

Actually jaguar fixed his implementation to correspond to the fixes proposed by xyz (forgot his name).

Of course I invite anyone to do a COMPLETE review of my code (the entire web client).

Also, tomorrow I will update the version on my site to do local signing (via the code above). It will no longer transmit your password to the server.

It works like this:

1) Fill in form, together with your password
2) On form submit, your password is not sent to the server, instead your public key is.
3) We get back raw bytes (prepared transaction)
4) This is "unpacked" and compared to your input.
5) If everything is OK, we send sign the raw bytes and send it back to the server.

I do step 3 so that server side can do input validation and error handling instead of client side (checking if name is taken, funds are available, order exists, etc).
hero member
Activity: 854
Merit: 1001
Nxt Marketing Committee has met!

I, as spokesperson of the Nxt Marketing Committe am proud to say we have met and are ready for action!

To keep things nice and tidy, we have set up camp in the "Unclaimed Coins" subforum of nxtcrypto, where we will keep separate threads on all applications and where we will keep our discussions.

The committee is manned and womaned by joefox, salsacz, allwelder, brooklynbtc (jefdiesel) and myself.

More info:

Nxt Marketing Fund Committee thread

Nxt Marketing Fund Committee Applications format

We invite every one of you to come with your plans and proposals so we can get this show on the road!


Your very first bounty request is:

Please give me a lot of NXT, just for being such a charming motherf****r.

Ta very much.
sr. member
Activity: 364
Merit: 250
☕ NXT-4BTE-8Y4K-CDS2-6TB82
legendary
Activity: 1092
Merit: 1010
Nxt Marketing Committee has met!

I, as spokesperson of the Nxt Marketing Committe am proud to say we have met and are ready for action!

To keep things nice and tidy, we have set up camp in the "Unclaimed Coins" subforum of nxtcrypto, where we will keep separate threads on all applications and where we will keep our discussions.

The committee is manned and womaned by joefox, salsacz, allwelder, brooklynbtc (jefdiesel) and myself.

More info:

Nxt Marketing Fund Committee thread

Nxt Marketing Fund Committee Applications format

We invite every one of you to come with your plans and proposals so we can get this show on the road!

rlh
hero member
Activity: 804
Merit: 1004
hey all

I am accepting applications to help me with some closed beta testing on a new pool that I am in the midst of setting up.  I hope to have the initial page up for the preliminary beta testers later today.

It is a mining pool that you can point your scrypt miners at, and use your NXT account ID as the worker name.  The pool will mine the most profitable of (eventually all of the altcoins) but during beta it will likely only mine the most profitable out of a small sampling of 3-4 different alts.
The coins that are mined will be liquidated on exchanges twice a day, and all of the BTC that they bring in will be used to buy NXT on the same exchange that the coins were sold on (to eliminate fees and time spent transferring coins between exchanges)
The NXT that is purchased with the BTC that was mined will then be sent out to all of the miners, divided up by the percentage of the total shares that each miner contributed to the pool.  There will be a 2.5% fee on the pool once it goes public (for the first 1 month) and afterwards the fee will drop to 2%.  During the closed beta period the fee will be 1%.  I have spent an enormous amount of time getting the various pieces to this all starting to work together, so I do not feel that it is an unfair fee amount.  The fee will be retained by the pool in the form of NXT, 100% of the coins mined will be liquidated for BTC and 100% of the BTC that is obtained will be immediately used to purchase NXT.

This will:

a) drive the price of NXT up by continually infusing BTC into the ecosystem
b) allow people to use scrypt miners to increase their NXT holdings.

Please message me if you're interested in testing the closed beta - as a warning, there will be limited visibility into the stats during the first part of the beta, although I will be more than willing to be in an IRC channel with the testers while they test.  Any coins that are mined will be liquidated and the NXT that they purchase will be distributed amongst the beta testers.  I am hoping to start the closed beta testing tonight, although there is the possibility that it may have to wait until early this week. 
--- Please include an approximate value for your hash rate if you're messaging about the closed beta testing.  I would like to be able to keep the beta to a reasonable hash rate, so please no huge 300 card mining farms or anything yet ---

Sorry guys, I can't keep up with this thread.  Wesley pointed this post to me over at Nextcoin.org.  Anyway, for those who didn't catch it, I posted a bounty for this type of pool.  However, to win the bounty, you need to implement a Scrypt mining address AND a SHA-256 address.  It sounds like this pool will most-likely meet the requirements, so long if they can implement SHA-256.
sr. member
Activity: 378
Merit: 254
small fry
holy cow i had no idea that bounty even existed
thank you very much for letting me know about i!!
sr. member
Activity: 308
Merit: 250
I am knee deep in code today and expect that I will be for most of the evening.
If you wanted to post a link to the post in this thread though, I would appreciate it.

Will do, btw did you know that a 200K bounty is awaiting you? https://nextcoin.org/index.php/topic,4388.30.html
Jump to: