Author

Topic: [ANN][LSK] Lisk | Blockchain Application Platform for JavaScript Developers - page 1546. (Read 3074324 times)

hero member
Activity: 574
Merit: 500
After doing weeks of research I've come to the conclusion that the iou prices  will be similar to LISK when it launches.  Once the password reset window closes on May 9th , 2016 individuals that have participated in the ico will be able to sell their LISK since they can't reset password after selling the access to these accounts.  Enjoy the ride!  Go LISK go!
Exactly! Those IOU prices will definitely be a reflection at launch. #GOLISK

unofficial launch is on may 9th so lets see how many buyers youl get #GOLISK people will be selling for DAO you can't stop this from happening

then mrmoney2 will say instead of sorry you miss ico he will say lucky you didnt buy ICO
hero member
Activity: 532
Merit: 500
After doing weeks of research I've come to the conclusion that the iou prices  will be similar to LISK when it launches.  Once the password reset window closes on May 9th , 2016 individuals that have participated in the ico will be able to sell their LISK since they can't reset password after selling the access to these accounts.  Enjoy the ride!  Go LISK go!
Exactly! Those IOU prices will definitely be a reflection at launch. #GOLISK
legendary
Activity: 2893
Merit: 1158
Hi! I wrote my script with email alert and sms sender! My script such restart or rebuild the node. Script started every minute!

You can download my script that:
Code:
wget https://github.com/Grum1in/grumlin-docs/releases/download/1.0/checker.sh
chmod 755 ./checker.sh


You need to change in script the next info:
Code:
LISK_DIR="$(pwd)/lisk-Linux-x86_64" (delete $(pwd) if you download this script to not working user directory)
PUBLICKEY=ff8aa63ae5eeb6cd866b615934163c1a94d25819a85b93856f1cdbcf439005c4
NODEIP=89.40.125.40
[email protected]
APIPORT=7000(in mainnet will be 8000)

Publick key you can get with: http://yourip:7000/api/accounts/getPublicKey?address=your_delegate_address

script have a few commands:

install smtp(need root permissions):
Code:
bash checker.sh installsmtp
tune smtp(need root permissions):
Code:
bash checker.sh tunesmtp
autostart(add record in crontab):
Code:
bash checker.sh autostart
logs
Code:
bash checker.sh logs

CODE SCRIPT:
Code:
#!/bin/bash

# file
DAT_FILE="$(pwd)/checker.data"
LOG_FILE="$(pwd)/checker.log"
LISK_DIR="$(pwd)/lisk-Linux-x86_64"

# public key and IP your node
PUBLICKEY=ff8aa63ae5eeb6cd866b615934163c1a94d25819a85b93856f1cdbcf439005c4
DATE=`date "+%F %H:%M:%S"`
NODEIP=89.40.125.40
[email protected]
APIPORT=7000

exec_check() {
# get list of IPs of peers(9 ps)
[[ $(curl -s 'http://127.0.0.1:'$APIPORT'/api/peers?') =~ \"success\":([[:lower:]]+),.*\
\"ip\":\"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)\",\"port\":[[:digit:]]+,\"state\":2.*\
\"ip\":\"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)\",\"port\":[[:digit:]]+,\"state\":2.*\
\"ip\":\"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)\",\"port\":[[:digit:]]+,\"state\":2.*\
\"ip\":\"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)\",\"port\":[[:digit:]]+,\"state\":2.*\
\"ip\":\"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)\",\"port\":[[:digit:]]+,\"state\":2.*\
\"ip\":\"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)\",\"port\":[[:digit:]]+,\"state\":2.*\
\"ip\":\"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)\",\"port\":[[:digit:]]+,\"state\":2.*\
\"ip\":\"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)\",\"port\":[[:digit:]]+,\"state\":2.*\
\"ip\":\"([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+)\",\"port\":[[:digit:]]+,\"state\":2.* ]]
if [ ! -z ${BASH_REMATCH[1]} ] && [ ${BASH_REMATCH[1]} == true ]; then
for IPs in 2 3 4 5 6 7 8 9 10; do
IPDELEGATES[$IPs - 1]=${BASH_REMATCH[$IPs]}
done
fi

# get local height
[[ $(curl -s 'http://127.0.0.1:'$APIPORT'/api/loader/status/sync') =~ \"success\":([[:lower:]]+),.*\"height\":([[:digit:]]+) ]]
MYHEIGHT=${BASH_REMATCH[2]}
let "MYHEIGHT+=5"

# get system param
FREEMEM=`head /proc/meminfo | grep MemFree | awk '{ print $2 }'`
CPULOAD=`ps aux | awk '{s += $3} END {print s "%"}'`

# restart client if free memory less than ~50 MB
if [ $FREEMEM -lt 50000 ]; then
echo $DATE "Restart miner! Memory is low! MemFree is" $FREEMEM >> "$LOG_FILE"
        /bin/bash $LISK_DIR/lisk.sh restart
        exit 0
fi

MAXHEIGHT=0

# find the biggest height in peers
for IP in ${IPDELEGATES[@]}; do
        [[ $(curl -s 'http://'$IP':'$APIPORT'/api/loader/status/sync') =~ \"success\":([[:lower:]]+),.*\"height\":([[:digit:]]+) ]]
if [ ! -z ${BASH_REMATCH[1]} ] && [ ${BASH_REMATCH[1]} == true ] && [ ${BASH_REMATCH[2]} -gt $MAXHEIGHT ]; then
MAXHEIGHT=${BASH_REMATCH[2]}
MAXHEIGHTPEER=$IP
        fi
done

# MAIN CODE
# check our node by peer of the best hieght
[[ $(curl -s 'http://'$MAXHEIGHTPEER':'$APIPORT'/api/delegates/get?publicKey='$PUBLICKEY) =~ \"success\":([[:lower:]]+),.*\"missedblocks\":([[:digit:]]+),.*\"rate\":([[:digit:]]+),\"productivity\":\"([[:digit:]]+\.[[:digit:]]+)\" ]]

SUCCESS=${BASH_REMATCH[1]}
MISSED=${BASH_REMATCH[2]}
RATE=${BASH_REMATCH[3]}
PRODUCTIVITY=${BASH_REMATCH[4]}

if [ -f "$DAT_FILE" ]; then
MISSEDNOW=$(sed -n '1p' "$DAT_FILE")
elif [ ! -z $MISSED]; then echo $MISSED > "$DAT_FILE"
else echo 0 > "$DAT_FILE"
fi

# check node by fork
tail -n 1000 $LISK_DIR/logs.log | grep "\"cause\":3" > /dev/null 2>&1
if [ $? = 0 ]; then
echo "Node forked! Node" $NODEIP "rebuilded! Current height is" $MAXHEIGHT "* Node height is" $MYHEIGHT "* MemFree is" $FREEMEM "* CPU load is" $CPULOAD | mail -v -s "Missed block by forging!" $EMAIL > /dev/null 2>&1
echo $DATE "Node forked! Node rebuilded! Current height is" $MAXHEIGHT "* Node height is" $MYHEIGHT "* MemFree is" $FREEMEM "* CPU load is" $CPULOAD >> "LOG_FILE"
/bin/bash $LISK_DIR/lisk.sh rebuild
fi

if [ ! -z $SUCCESS ] && [ $SUCCESS == true ]; then
        if [ $MISSEDNOW -lt $MISSED ]; then
                #curl -s 'http://sms.ru/sms/send?api_id=2549E81F-24F5-0990-D873-4911358B12A3&to=375295180951&text=Missed+block!+Check+node!' > /dev/null 2>&1
echo "Missed block! Check all nodes! Current height is" $MAXHEIGHT "* Node height is" $MYHEIGHT "* MemFree is" $FREEMEM "* CPU load is" $CPULOAD | mail -v -s "Missed block by forging!" $EMAIL > /dev/null 2>&1
                echo $DATE "Missed block! Current height is" $MAXHEIGHT "* Node height is" $MYHEIGHT "Send SMS, email and restart node!" >> "$LOG_FILE"
echo $MISSED > "$DAT_FILE"
/bin/bash $LISK_DIR/lisk.sh restart
                exit 0
        fi

if [ $MYHEIGHT -lt $MAXHEIGHT ]; then
echo "Incorrect height! Check node" $NODEIP "! Current height is" $MAXHEIGHT "* MemFree is" $FREEMEM "* CPU load is" $CPULOAD | mail -v -s "Incorrect height of blockchain!" $EMAIL > /dev/null 2>&1
echo $DATE "Incorrect height! Send email! Current height is" $MAXHEIGHT "* Node height is" $MYHEIGHT "* MemFree is" $FREEMEM "* CPU load is" $CPULOAD >> "$LOG_FILE"
exit 0
fi

echo $DATE "It's OK! Current height is" $MAXHEIGHT "* MemFree is" $FREEMEM "* CPU load is" $CPULOAD >> "$LOG_FILE"

else echo $DATE "Can't get info about delegate! Current height is" $MAXHEIGHT "* MemFree is" $FREEMEM "* CPU load is" $CPULOAD >> "$LOG_FILE"
fi
}

# crontab and tail logs
autostart_cron() {
  local cmd="crontab"
  command -v "$cmd" &> /dev/null
  if [ $? -eq 1 ]; then
    echo "Failed to execute crontab."
    return 1
  fi
  crontab=$($cmd -l 2> /dev/null | sed '/checker\.sh execute/d' 2> /dev/null)
  crontab=$(cat <<-EOF
$crontab
* * * * * $(command -v "bash") $(pwd)/checker.sh execute
EOF
  )
  printf "$crontab\n" | $cmd - 2> /dev/null
  if [ $? -eq 0 ]; then
    echo "Crontab updated successfully."
    return 0
  else
    echo "Failed to update crontab."
    return 1
  fi
}

tail_logs() {
  if [ -f "$LOG_FILE" ]; then
    tail -f "$LOG_FILE"
  fi
}

install_ssmtp() {
  if [ $(command -v "ssmtp") ]; then
    echo "Existing ssmtp installation found."
    echo ""
  else
    echo "Installing ssmtp..."
    echo ""
    apt-get -y install ssmtp > /dev/null
    if [ $? != 0 ]; then
      echo "Failed to install ssmtp."
      exit 0
    else
      echo "Ssmtp installed successfully."
    fi
  fi
}

tune_ssmtp() {
 read -p "Enter your system user name who start lisk client(example: lisk): " user
 read -p "Enter your login name(example: lisk.grumlin): " login
 read -p "Enter your password in smtp(mail): " pass
 read -p "Enter your mail hoster(example: gmail.com): " mail
 read -p "Enter your smtp server(example: smtp.gmail.com:465): " smtp
 echo $user:$login\@$mail:$smtp > /etc/ssmtp/revaliases
 echo "mailhub="$smtp > /etc/ssmtp/ssmtp.conf
 echo "rewriteDomain="$mail >> /etc/ssmtp/ssmtp.conf
 echo "hostname="$mail >> /etc/ssmtp/ssmtp.conf
 echo "UseTLS=YES" >> /etc/ssmtp/ssmtp.conf
 echo "AuthUser="$login >> /etc/ssmtp/ssmtp.conf
 echo "AuthPass="$pass >> /etc/ssmtp/ssmtp.conf
 echo "FromLineOverride=YES" >> /etc/ssmtp/ssmtp.conf
 echo " *** If you need to change setting, edit /etc/ssmtp files or just start install else. ***"
}

case $1 in
"execute")
  exec_check
  ;;
"autostart")
  autostart_cron
  ;;
"installsmtp")
  install_ssmtp
  ;;
"tunesmtp")
  tune_ssmtp
  ;;
"logs")
  tail_logs
  ;;
*)
  echo "Error: Unrecognized command."
  echo ""
  echo "Available commands are: autostart installssmtp logs"
  ;;
esac
legendary
Activity: 1762
Merit: 1002
at may 10, lisk can be traded with the key,
who want buy my lisk at 4$ Pm-me
Try MICHAELWANG.

why dude why you dumping at $4 isnt it gonna be $5 at launch are you crazy epic pump gonna happen here we the best only the best

LOL

make it 0.04 then il consider for now all about DAO just see it from a trader view youl see why lisk will get dumped hard buy it back after 4months+ make your money on DAO then see
lol i invested on dao too, dont worry guy $4 is not the best price when pump happen,  Grin next month
dao long project like augur, the money will tied up at the best opportunity for liquidation when BTC pump on september
project dao like prisoner for whale didnt dump to much when BTC peak, THE ETHEREUM team have been planing and ploting area to bring ETH on sky wont touch the ground anymore

The BTC  halving is on July 11. Why would BTC pump in September ?


the halving its just starting small pump, not the real one
hero member
Activity: 518
Merit: 500
Enjoying the ups & downs of Cryptocurrency!
After doing weeks of research I've come to the conclusion that the iou prices  will be similar to LISK when it launches.  Once the password reset window closes on May 9th , 2016 individuals that have participated in the ico will be able to sell their LISK since they can't reset password after selling the access to these accounts.  Enjoy the ride!  Go LISK go!
hero member
Activity: 574
Merit: 500
When Lisk launches and we get $35 per LISK we will have to hear to MICHAELWANG33 saying that this is a bubble!!

Haha sorry u miss the ICO

$35 per lisk you sure you aint missing a decimal seriously do you read the posts you know you cant edit once i have quoted it right

if your gonna attract buyers atleast dont consider them to be fools.

when lisk launches youl be the first one to post i barely got out at some profit and i have now invested in dao will buy back lisk cheaper
legendary
Activity: 1762
Merit: 1002
DIGIXDAO will pass IOU tokens at 35$,  
sr. member
Activity: 462
Merit: 250
Huge Lisk pump coming at launch. May 24th will be of EPIC Proportions.

all the pump money gone into dao what pump you on about

Dao troll? Why?  Cry
hero member
Activity: 532
Merit: 500
Lisk $10 at launch. People are so passionate they will NOT sell cheap at all. Already some people wanting to sell accounts at $4-5 per Lisk. May 24th will be of BIBLICAL Proportions. So much HYPE right now its amazing as we get closer everyday towards launch. Expectations are very high so far. If Digixdao can trade at $10 right now then Lisk will trade at $20 without breaking a sweat. MY BODY IS READY. Cheesy
legendary
Activity: 1762
Merit: 1002
at may 10, lisk can be traded with the key,
who want buy my lisk at 4$ Pm-me
Try MICHAELWANG.

why dude why you dumping at $4 isnt it gonna be $5 at launch are you crazy epic pump gonna happen here we the best only the best

LOL

make it 0.04 then il consider for now all about DAO just see it from a trader view youl see why lisk will get dumped hard buy it back after 4months+ make your money on DAO then see
lol i invested on dao too, dont worry guy $4 is not the best price when pump happen,  Grin next month
dao long project like augur, the money will tied up at the best opportunity for liquidation when BTC pump on september
project dao like prisoner for whale didnt dump to much when BTC peak, THE ETHEREUM team have been planing and ploting area to bring ETH on sky wont touch the ground anymore
sr. member
Activity: 322
Merit: 250
When Lisk launches and we get $35 per LISK we will have to hear to MICHAELWANG33 saying that this is a bubble!!

Haha sorry u miss the ICO
legendary
Activity: 1762
Merit: 1002
at the times when pump happen just a bit word from ppl who miss the ico "damn i miss the ico to much overslept"
or maybe u dont have enough money to buy lisk when ico running,
sr. member
Activity: 322
Merit: 250
Huge Lisk pump coming at launch. May 24th will be of EPIC Proportions.

My body is ready!!
hero member
Activity: 574
Merit: 500
at may 10, lisk can be traded with the key,
who want buy my lisk at 4$ Pm-me
Try MICHAELWANG.

why dude why you dumping at $4 isnt it gonna be $5 at launch are you crazy epic pump gonna happen here we the best only the best

LOL

make it 0.04 then il consider for now all about DAO just see it from a trader view youl see why lisk will get dumped hard buy it back after 4months+ make your money on DAO then see
legendary
Activity: 1120
Merit: 1000
MICHAELWANG33

Sorry u miss the ICO
U will buy at $28 but not from me couse I'm holding until $130

Sorry m8!!
MICHAELWANG33:

SORRY YOU MISSED THE ICO. YOU CAN BUY LISK AT LAUNCH FOR $5 A COIN.

wow

how identical is those posts

similarities

using caps on my username

both saying samething
both giving stupid prices
and the bigges giveaway is they are both talking bullshit

Dude trust me I tried, they don't wanna believe their bullshit or it's just stupid shills of same hypers for LISK.  Don't bother waste your breathe.

sr. member
Activity: 437
Merit: 250
at may 10, lisk can be traded with the key,
who want buy my lisk at 4$ Pm-me
Try MICHAELWANG.
hero member
Activity: 574
Merit: 500
Que? I missed the ICO, did I?

anybody who talks about dumps below $5 gets that reply its normal here

Rather interesting. And you base this on what?

the last 500 pages
hero member
Activity: 574
Merit: 500
Huge Lisk pump coming at launch. May 24th will be of EPIC Proportions.

all the pump money gone into dao what pump you on about
hero member
Activity: 532
Merit: 500
Huge Lisk pump coming at launch. May 24th will be of EPIC Proportions.
legendary
Activity: 1762
Merit: 1002
at may 10, lisk can be traded with the key,
who want buy my lisk at 4$ Pm-me
Jump to: