22 views

### (How/Why) - Work vs Block Size Limit and Leading Zeros [duplicate]

Tl:dr How did Satoshi/the community decide an appropriate block-size-limit? Why does the protocol increase mining difficulty by adding zeros? I've some limited experience with some of the ...
• 103
33k views

### What keeps the average block time at 10 minutes?

I've been told "the network" sets the difficulty level such that there will be one new block mined every ten minutes. I imagine the rich would instead prefer to keep difficulty as high as possible to ...
• 2,030
9k views

### How to calculate new "bits" value?

Every 2016 blocks one needs to calculate new bits value. What is the formula to calculate it?
• 43.1k
6k views

### How is a block header hash compared to the target (bits)?

I'm trying to wrap my head around the mining process by doing a small example of block hashing. According to the Wiki entry about difficulty, the target for a block hash can be read from the "bits" ...
• 235
14k views

### Mining Difficulty and Leading Zeros

I understand that the Bitcoin mining problem is to find a string s (hash of previous block + Merkle Tree Hash + nonce) such that sha256(s) has n leading zeros, where n determines the mining difficulty....
493 views

### Chain with most proof of work - hash target or block header hash?

What is calculated towards the sum of PoW of the chain? Is it the target difficulty that has been met or is it the actual block header hash? Say the target is 000000ABC00000000... and I mine block ...
• 1,074
295 views

### Is it always possible to find a number whose hash starts with a certain number of zeros?

As I understand it, proof of work requires nodes to "scanning for a value that when hashed, such as with SHA-256, the hash begins with a number of zero bits" ([bitcoin paper])1. Specifically,...
283 views

### Can we have multiple possible nonce making same number of leading zeroes in the hash?

Is it possible to have different nonce which are satisfying the same condition of having let's say 4 leading zeroes in the hash? Is it possible that one node suggests 89123 nonce and other node ...
535 views

### Process for finding nonce

Assume we have a transaction in hex (tx_hex) and we want to find a nonce such that SHA-256(SHA-256(nonce|| tx_hex)) = new_transaction_id ('||' denotes concatenation) first bits consist of 32 zeros. ...
• 101
1 vote
188 views

### Why does the Genesis block appear to have a lower hash than necessary?

The hash of the genesis block of bitcoin has two extra 0 as compared to other block hashes. According to the logic, it should have been the same as they all have the same difficulty. Why is it so? Was ...
1 vote
92 views

### How a real mining code treats difficulty?

I have come up recently with "how to mine bitcoin using python" or "how to mine bitcoin using golang" and as I have been observing all these source code, not only I'm confused but ...
• 13