Onryo

BitCoin per 24/h BFL

Jan 30th, 2013
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. #! /bin/bash
  2.  
  3. yourHashRateInMhash=60000
  4.  
  5. while true
  6. do
  7.     blockReward=$(curl -s  https://blockexplorer.com/q/bcperblock)
  8.     currentDifficulty=$(curl -s https://blockexplorer.com/q/getdifficulty)
  9.     echo ""
  10.     echo "The current difficulty is $currentDifficulty"
  11.     btcAday=`echo "$yourHashRateInMhash*$blockReward/$currentDifficulty*(60*60*24*65535*10^6/2^48)" | bc -l`
  12.     echo "You will make $btcAday BTC in the next 24 hours at this rate"
  13.     echo ""
  14.     echo ${btcAday:0:10} `date +%Y-%m-%d-%H:%M` >> flatDB.txt
  15.     sleep 1800
  16. done
Advertisement
Add Comment
Please, Sign In to add comment