Bitcoin Forum
May 13, 2024, 11:18:46 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How mining really works? Ping vs hash rate  (Read 1879 times)
collapse (OP)
Full Member
***
Offline Offline

Activity: 206
Merit: 102


step forward


View Profile
April 03, 2013, 08:25:13 PM
 #1

I can not understand very well how mining works

We have :
Quote
static const int CURRENT_VERSION=2;
    int nVersion; /* const */
    uint256 hashPrevBlock; /* char */
    uint256 hashMerkleRoot; /* char */
    unsigned int nTime; /* year 2038 max */
    unsigned int nBits; /* 2^32 */
    unsigned int nNonce;/* 2^32 */

nVersion, hashPrevBlock,hashMerkleRoot,nTime,nBits, are known?
Only nNonce should be tested and sha256(sha256(header)) < nBits

Unsigned int max is 2^32,  1/(2^32) s, for full test.
If machine can perform 2 * 1/(2^32) should solve a block in a second = 8.5GSha256/s

At this point, seems more important conectivity to whole network. Is this correct?
How new block are propagated?





Elacoin-ELC,Betacoin-BET,Neutroncoin-NTRN,Americancoin-AMC,Stronghands-SHND,Craftcoin-CRC,DOGE,BCH,BTC,...,Bitcoin,...(and a lot more)
Linux updated wallets (source code) for: ELC, BET, AMC, NKT, SLING, CRC,...
[if (blocknumber > 115000) maxblocksize=largerlimit]   [I don't think the threshold should ever be 0.  We should always allow at least some free transactions.]
1715642326
Hero Member
*
Offline Offline

Posts: 1715642326

View Profile Personal Message (Offline)

Ignore
1715642326
Reply with quote  #2

1715642326
Report to moderator
1715642326
Hero Member
*
Offline Offline

Posts: 1715642326

View Profile Personal Message (Offline)

Ignore
1715642326
Reply with quote  #2

1715642326
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715642326
Hero Member
*
Offline Offline

Posts: 1715642326

View Profile Personal Message (Offline)

Ignore
1715642326
Reply with quote  #2

1715642326
Report to moderator
1715642326
Hero Member
*
Offline Offline

Posts: 1715642326

View Profile Personal Message (Offline)

Ignore
1715642326
Reply with quote  #2

1715642326
Report to moderator
collapse (OP)
Full Member
***
Offline Offline

Activity: 206
Merit: 102


step forward


View Profile
April 04, 2013, 07:27:53 AM
 #2

Quote
60 THashes per second, is around 8 minutes

Why?
Or, mining does not works as I think?

Elacoin-ELC,Betacoin-BET,Neutroncoin-NTRN,Americancoin-AMC,Stronghands-SHND,Craftcoin-CRC,DOGE,BCH,BTC,...,Bitcoin,...(and a lot more)
Linux updated wallets (source code) for: ELC, BET, AMC, NKT, SLING, CRC,...
[if (blocknumber > 115000) maxblocksize=largerlimit]   [I don't think the threshold should ever be 0.  We should always allow at least some free transactions.]
MashRinx
Sr. Member
****
Offline Offline

Activity: 389
Merit: 250



View Profile
April 04, 2013, 02:11:14 PM
 #3


From the Wiki page on Bitcoin Difficulty:

What network hash rate results in a given difficulty?

The difficulty is adjusted every 2016 blocks based on the time it took to find the previous 2016 blocks. At the desired rate of one block each 10 minutes, 2016 blocks would take exactly two weeks to find. If the previous 2016 blocks took more than two weeks to find, the difficulty is reduced. If they took less than two weeks, the difficulty is increased. The change in difficulty is in proportion to the amount of time over or under two weeks the previous 2016 blocks took to find.

To find a block, the hash must be less than the target. The hash is effectively a random number between 0 and 2**256-1. The offset for difficulty 1 is

There is a lot more information on the page below that may help answer your question.

https://en.bitcoin.it/wiki/Difficulty
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!