Bitcoin Forum
July 04, 2024, 04:21:00 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: « 1 [2]
21  Alternate cryptocurrencies / Mining (Altcoins) / Re: Will Bitcoin Cash be more profitable for mining? on: August 17, 2017, 08:40:29 PM
any BCC mining calculators out yet?  Has the difficulty fully retargeted to the new hashrate?  Wondering if it's worth firing up my S5 or not.  Power cost is not an issue.
Maybe that works

An online calculator here http://cashcalculator.pw/

Code:
#!/usr/bin/python

import urllib2,simplejson,sys

# usage python cashmine.py <ths>
# example to calculate bitcoin cash earning for 14 ths, python cashmine.py 14
 

def calc():
    
    usd = simplejson.load(urllib2.urlopen("https://api.coinmarketcap.com/v1/ticker/bitcoin-cash/"))[0]["price_usd"]
    month_bcc = (30* int(sys.argv[1]) * 1e12 * 12.5 * 86400) / (simplejson.load(urllib2.urlopen("https://cashexplorer.bitcoin.com/api/status?q=getDifficulty"))["difficulty"]*2**32)

    print "[*]Bitcoin Cash mining calculator using %s ths" %sys.argv[1]
    print "[*]Difficulty changes every 2016 blocks, 2 weeks"
    print
    print "Hour:  %f bcc  ||->  %.2f usd" %(month_bcc / 30 / 24, float(usd) * month_bcc / 30 / 24)
    print "Day:   %f bcc  ||->  %.2f usd" %(month_bcc / 30 , float(usd) * month_bcc / 30 )
    print "Week:  %f bcc  ||->  %.2f usd" %(month_bcc / 30 * 7, float(usd) * month_bcc / 30 * 7)
    print "Month: %f bcc  ||->  %.2f usd" %(month_bcc, float(usd) * month_bcc)
    

if __name__ == '__main__':
    calc()
22  Bitcoin / Bitcoin Discussion / Re: Increasing Block size lowers the value of Bitcoin on: August 17, 2017, 06:27:44 PM
Many people are seeing Bitcoin as a way to easily make money, to understand someone exactly what Bitcoin offers need to look over the price, in 2017 to send 0.001 is required to add as fee the 50% of the tx amount, if the Increasing Block size lowers the value of Bitcoin, the increasing of fees can lower bitcoin users..
23  Bitcoin / Development & Technical Discussion / Re: Blockchain development on: August 17, 2017, 06:15:11 PM
What are the basic requirements for developing a blockchain?

Time, Patience, Program language to build the codebases
Pages: « 1 [2]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!