Questions tagged [difficulty]

This tag should be used for questions regarding difficulty which encodes the likelihood of one hash to succeed at mining a block. Indirectly, it is a measure of the total hashing power of all miners for a given cryptocurrency.

Filter by
Sorted by
Tagged with
0 votes
2 answers
45 views

What does SHA256 hast must be lower than current target?

I'd like to ask if someone can help explain this definition found on https://en.bitcoin.it/wiki/Target "The SHA-256 hash of a block's header must be lower than or equal to the current target for ...
user avatar
1 vote
1 answer
48 views

How often does target hash change and how to find it?

So basically I was researching target hash and trying to figure out how I can find it. I know there are posts out there that have said that Bitcoins target hash is a 256 bit number with 32 bits of ...
user avatar
  • 31
0 votes
1 answer
33 views

How does the bitcoin network difficulty syntax work?

So, essentially what my question is what does the "syntax" of a bdiff (bitcoin target difficulty) look like? I know that its a number, i.e the current network difficulty is set at around ...
user avatar
1 vote
1 answer
30 views

Does the length of the blockchain affect computing power needed to verify transactions?

As the blockchain for something like BTC grows, does that affect the time needed to verify new transactions and/or the integrity of the blockchain? From my understanding, miners only verify the hash ...
user avatar
1 vote
1 answer
56 views

How do you derive "0x008000 is the smallest legal value for the lower 24 bits since targets are always stored with the lowest possible exponent"?

From https://en.bitcoin.it/wiki/Difficulty: How is difficulty stored in blocks? Each block stores a packed representation (called "Bits") for its actual hexadecimal target. The target can ...
user avatar
0 votes
1 answer
65 views

What's the point for mining pools to set a higher target?

I'm reading the Mastering Bitcoin 10th chapter, and quote Similarly, a mining pool will set a (higher and easier) pool target that will ensure that an individual pool miner can find block header ...
user avatar
  • 107
2 votes
1 answer
121 views

can the network stagnate if the difficulty grows too big?

So im mainly thinking in the very early days of bitcoin when the networks compute power was minimal. What would happen if say a big organization with exponentially more compute power than the network, ...
user avatar
  • 125
0 votes
3 answers
42 views

if the lower bound of a blocks timestamps is the median of the previous blocks, how can the network difficulty ever decrease?

according to bitcoin developer documentation the lower bound for a blocks timestamp is the median of the previous 11 blocks. and also according to the documentation the network difficulty is ...
user avatar
  • 125
2 votes
1 answer
45 views

Algorithm behind Bitcoin Core's hashes/s metric

The call bitcoin-cli getmininginfo returns a metric networkhashps among others. It shows how many hashes the entire Bitcoin network generates per second. This metric however, is not directly stored ...
user avatar
0 votes
0 answers
59 views

What is the "implementation accident" for encoding difficulty targets?

After reading the Bitcoin wiki on difficulty I was wondering why there is a sign bit in the difficulty encoding in blocks ("Note that this packed format contains a sign bit in the 24th bit")....
user avatar
  • 121
0 votes
0 answers
18 views

Would AsicBoost have made "all the difference between a profitable and an unprofitable mine" "for the bitcoin mines of the future"?

Back when AsicBoost was a thing - the paper by Timo Hanke, "AsicBoost - A Speedup for Bitcoin Mining", made the following claims in the introduction: Through gate count reduction on the ...
user avatar
  • 147
1 vote
1 answer
111 views

How do difficulty, hashrate, and network hashrate fit together?

I understand that there are multiple terms for the idea of how hard it is to successfully mine BTC. The terms I have seen are "difficulty", "network hashrate" and "hashrate&...
user avatar
  • 13
2 votes
1 answer
2k views

Bitcoin difficulty - why leading 0s?

I do a sort of bitcoin 101 presentation for folks where I work. In one of the recent sessions, someone asked why the proof of work difficulty requires a minimum number of leading 0s. Why not 1s or ...
user avatar
  • 163
5 votes
4 answers
2k views

Would Bitcoin still work without a target difficulty?

Suppose that Bitcoin nodes had no target difficulty at all, and instead just accepted the block with the largest PoW every 10 minutes. Ignoring the increased bandwidth (since nodes would be ...
user avatar
1 vote
1 answer
77 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 ...
user avatar
1 vote
1 answer
53 views

Choosing main chain based on difficulty

If a node observes a fork in the bitcoin chain, then the node will choose the chain that has the highest difficulty (sum of difficulty in each block of the chain). But the difficulty changes only once ...
user avatar
  • 141
1 vote
2 answers
99 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 ...
user avatar
2 votes
2 answers
96 views

Making the block reward dependent on the difficulty?

I am looking for papers which discuss, if making the block rewards dependent on the difficulty could be used to curb excessive PoW growth. Idea is that BTC price roughly drives difficulty and energy ...
user avatar
0 votes
1 answer
34 views

What does it mean to make mining more difficult? [duplicate]

Really I don't know nothing about bitcoin but now I got curious read something and immediately come to something on mind. I mean, there's a social economic comunity somewhere generating value based on ...
user avatar
1 vote
0 answers
303 views

Cant understand how share difficulty affects my chances in solo mining with a pool

So obviously I am not solo mining bitcoin but I think the underlying principles are the same so you guys could help me out here. I am solo mining ergo on a solo pool (herominers solo pool) What I do ...
user avatar
  • 111
2 votes
4 answers
228 views

What is the meaning of difficulty in Bitcoin mining?

I'm a beginner in Bitcoin and Blockchain technology, so I have a question after reading about the difficulty in Bitcoin mining: What does the difficulty actually mean? I read that A high difficulty ...
user avatar
  • 21
0 votes
1 answer
77 views

Bitcoin difficulty: One block with very high difficulty vs. long chain with accumulated difficulty

First assume the hypothetical scenario, that someone has infinite hashing power, starts with the genesis block and mines one block, that has higher difficulty than the whole "normal" ...
user avatar
  • 103
5 votes
2 answers
3k views

Isn't Bitcoin's hash target supposed to be a power of 2?

From Bitcoin's whitepaper I've gathered that the hash of a block must start with a certain number of zeroes. And that this number of zeroes is adjusted every 2 weeks. Consequently the hash target is a ...
user avatar
  • 133
1 vote
1 answer
134 views

How is the Max Target of a Genesis Block Decided?

I've been diving into the world of Blockchain and crypto lately, trying to build my understanding of mining specifically. I understand that in POW systems, the difficulty of the first block is 1, and ...
user avatar
1 vote
1 answer
51 views

How is "cumulative PoW" calculated to decide between competing chains?

Chain 1 has blocks with targets diff1, diff2, diff3, diff4 Chain 2 has blocks with targets DIFF1 DIFF2 DIFF3 What's the formula to derive the (relative) cumulative proof of works from these chains to ...
user avatar
  • 9,789
0 votes
0 answers
30 views

Was Bitcoin originally designed to be easy to mine?

I’ve read that back around early 2009, Bitcoin was so easy to mine that an old laptop could mine hundreds of coins in a day by simply using a CPU. Was this Satoshi’s original idea for how people ...
user avatar
0 votes
1 answer
426 views

What would happen if mining difficulty would be decreased to almost nothing?

What would happen if Bitcoin mining difficulty would be reduced to nothing/very easy? I can only think of the benefits such as exceptionally lower enery waste and much faster transaction processing. ...
user avatar
1 vote
1 answer
101 views

Is there an easy way to estimate the number of mining nodes?

I was curious about the number of mining nodes on the network, yet I haven't seen it discussed. I tried two different approaches to approximate the count of mining nodes. I looked up the hashrate of ...
user avatar
1 vote
1 answer
52 views

What would the expected block mining time be if 30% of the total network hashrate disappeared suddenly?

Ignoring the economic reasons as to why this may or may not happen. If for some reason the network hashrate suddenly dropped by 30% immediately after a difficulty adjustment and remained at that ...
user avatar
  • 11
1 vote
1 answer
293 views

How are the nBits of a block calculated?

So I've been trying to figure out how the nBits of a block is calculated, but I can't seem to come up with an answer. I know (think) that it's based off the difficulty of the block, but I'm still not ...
user avatar
  • 69
0 votes
1 answer
56 views

How does the difficulty target affect the time to complete the block? [duplicate]

So, I'm currently doing a personal project where I'm creating my own crypto blockchain (just for fun). I'm currently coding the Difficulty Target part of the Blockchain, but I'm not entirely sure how ...
user avatar
  • 69
0 votes
1 answer
212 views

ELI5: does the number of 0's required in mining for SHA256 over the years strictly increase, or does it depend on how many miners there are?

It is said that to discover a block, the person has to get a SHA256 number that has all 0's for the first 72 bits. Does this number 72 change and become bigger and bigger over the years (say, every 4 ...
user avatar
0 votes
2 answers
65 views

How is difficulty enforced in the bitcoin blockchain? [duplicate]

Is it through some sort of voluntary acceptance by miners or is it hardcoded into the bitcoin blockchain to not accept a block which doesn't achieve a given difficulty level?
user avatar
1 vote
1 answer
60 views

With the right technology, could the entire blockchain be rewritten?

Imagine that someone had access to an alien super computer such that they could mine any block in nanoseconds. At that point, could that person create a chain with the same BTC genesis block, generate ...
user avatar
  • 171
1 vote
1 answer
44 views

How many numbers to try to solve the proof-of-work problem

I'm preparing for a lecture on blockchain, where I'm going to briefly explain the proof-of-work mechanism and the hashcash challenge. To illustrate the difficulty, I want to give the maximum amount of ...
user avatar
  • 135
0 votes
1 answer
152 views

I need help on how to change the disk to run my bitcoin core wallet

Long time ago I transferred my wallet on My Passport an external hard disk. I have not opened bitcoin core for over 8 months. I opened it 2 days ago, the dialog box opened, which normally doesn’t and ...
user avatar
3 votes
2 answers
346 views

Bitcoin: Why can the difficulty parameter not be ignored?

by the longest-chain-rule, the chain with the most blocks is considered to be the main chain in Bitcoin. I understand that an adversary needs to have more than 50% of the network's computing power in ...
user avatar
0 votes
1 answer
59 views

Why number of zeroes in bitcoin hash is increasing? [duplicate]

I know currently to mine a block there needs to be 19 leading zeroes in the hash, but why is this number increasing?
user avatar
0 votes
3 answers
134 views

How do we know that a certain hash below the target is even possible when mining?

If the target hash were artificially low, i.e. 3, how do miners know if there will ever be a nonce that produces such a hash?
user avatar
  • 1
4 votes
1 answer
112 views

What stops miners from manipulating "target" difficulty in the block header?

I am relatively new to understanding the fundamentals of the Bitcoin network, and I couldn't find the answer to my question. I understand how mining difficulty/target is decided and calculated in the ...
user avatar
8 votes
3 answers
487 views

Why this ugly looking formula to calculate 'target' from 'nBits' in block header: target = coefficient * 256**(exponent-3)

Why this ugly looking formula to calculate 'target' from 'nBits' in block header: target = coefficient * 256**(exponent-3). Why not? : target = coefficient * 256**(exponent). What is the need of ...
user avatar
5 votes
2 answers
227 views

Does Cryptocurrency really need timestamps?

Bitcoin is supposed to be a clock on it's own right so it always felt sketchy to me that outside time is referenced. Could bitcoin be aware of it's own block interval through something like uncle ...
user avatar
  • 51
4 votes
1 answer
187 views

Could Bitcoin have a fixed difficulty?

Could Bitcoin have a fixed difficulty, how to implement that for a test and what would that mean in terms of mining? Would there be a difference if mining with a big rig or just a wallet?
user avatar
  • 41
3 votes
2 answers
614 views

Bitcoin Difficulty granularity

Difficulty adjusts by very granular percentages to target for 10 minutes blocks. But adding another zero at the end of the chain of zeroes from the header hash requirement for a valid block would ...
user avatar
  • 113
0 votes
1 answer
53 views

What is the algorithm that adjusts the difficulty of the proof of works in a proof of work based cryptocurrency? [duplicate]

For instance, Bitcoin has a proof of work based consensus algorithm, it's how Bitcoin chooses a node to create the next block in Bitcoin's blockchain. In this way the network is in consensus about the ...
user avatar
1 vote
2 answers
465 views

How do more leading zeroes make it more difficult to find a block?

A couple of articles describing the process of mining do say that the more miners are in the network, the more 0 numbers are included in the encoded hash of the particular block. I cannot find an ...
user avatar
  • 123
2 votes
1 answer
696 views

What is the formula for inferring hash rate from difficulty and block frequency?

Two parts to this question 1/ There have recently been concerns over drops in hash rate observed on sites such as blockchain.com. However, my understanding is that hash rate is inferred from the ...
user avatar
0 votes
1 answer
70 views

How the difficulty of the network affect the average block mining time if we have static hash power?

Let's suppose that I have 500 KH/s of hash power overall from my mining rig. I'm about to start mining coin X and its network difficulty is Y. Current hashrate of the whole network is 100 KH/s and ...
user avatar
1 vote
1 answer
84 views

getblocktemplate request that omits transactions?

Is there a way to make a getblocktemplate request that returns only the bits/target, or at least omits all of the pending transactions? I am interested in tracking the coin difficulty in real time. ...
user avatar
  • 123
3 votes
2 answers
3k views

Why can't miners meet the difficulty by picking a low number for the block hash?

In terms of 'proof of work' my novice understanding is that miners are tying to come up with a 64-digit hexadecimal number, "hash," that is less than or equal to the target hash. Can't miners always ...
user avatar
  • 31

1
2 3 4 5
7