Forum Home
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Popular

    [Solved] Formula Hashrate of a block?

    Support
    2
    2
    1017
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      coinora last edited by wrapper

      Hello,
      I found out that my formula for computing the hash-rate of a block may be inaccurate here it is:

      hashrateOfaBlock = (difficultyOfaBlock * pow(2,32)) / (150*1000.00);

      150secs are the 2,5 minutes as retarget time.

      If I compute all Blocks of the 16. January I get: 6,028,893.322 Khash/sec
      But on bitinfocharts I get 6.69 Mhash/sec ([url=http://bitinfocharts.com/comparison/hashrate-ftc.html]http://bitinfocharts.com/comparison/hashrate-ftc.html[/url])

      What could be wrong?

      Best regards an happy weekend: coinora

      1 Reply Last reply Reply Quote 1
      • wrapper
        wrapper Moderators last edited by

        You are using an “imagined” block time. Not the real one.

        i.e. The difficulty of the next block is not future predicted, it is of the previous block. The block time will never be 150 secs, it will vary around that figure. Depending on the current variability of network hash rate.

        So you need get the actual block times for each block.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post