Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

1
vote
1answer
23 views

Mining a new block

Hypothetically, if you only have one node mining in the network, how much time does it take to solve for the nonce assuming for example the current difficulty?
0
votes
1answer
28 views

How to calculate coins mined per day?

Sorry for the noob question I'm pretty new to crypto coins and all this stuff. :) I wonder why the formula <your hashrate> / <coin difficulty> gives the mined coins as a result...Formula ...
1
vote
1answer
38 views

How is the target in Bitcoin set? Who does this?

I want to understand how the target value is adjusted or by whom in Bitcoin. I know that the hash of a block + nonce must be lower or equal to the given target for mining. Who sets this target ? If ...
0
votes
1answer
11 views

How difficulty variation is technically linked to time take for the block discovery?

Can anybody explain to me technically in units about the time relation to difficulty variation in bitcoin mining e.g. if a block is discovered in 10 minutes, does T = 10 minutes? or T = 20160 minutes ...
2
votes
1answer
34 views

Is there a limit to how many blocks can be rolled back from a 51% attack?

I was wondering if we where to ever face a 51% attack is there some sort of limit as to when the longest chain doesn't matter? For example if I owned 51%+ of the network, mined 1000 blocks privately ...
0
votes
0answers
32 views

The difficulty of pool

When I connected to f2pool,I received the difficulty of pool(8192 decimal). How can I use this value to confirm the hash I calculated? Is this just like the solo mining? "current_target = ...
4
votes
1answer
186 views

Why aren't block hashes used directly as scores for difficulty purposes?

Why does Bitcoin apply a difficulty function to block hashes and then use the output of this function to add up and determine the "longest" chain? Why not just e.g. add together all block hashes (as ...
4
votes
1answer
186 views

Testnet difficulty change

Has something changed recently in testnet? Today I've been seeing new blocks appear every 1-5 seconds instead of the usual 10-20 minutes
0
votes
1answer
39 views

Why is the target truncated?

Reading the docs on target: The maximum target used by SHA256 mining devices is: 0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Because Bitcoin stores the target as a ...
1
vote
1answer
62 views

Is there any way by which we can see when was last time or which was the block that was created just before bitcoin adjusted its latest difficulty?

I guess if we start doing mathematical calculation then we can easily find exjact block no which was formed just before difficulty was adjusted. But is there anyway around like by using RPC by which ...
0
votes
1answer
25 views

How are difficulty level and block reward determined and stored in decentralized fashion in Bitcoin? [duplicate]

I know the difficulty level and block reward are periodically adjusted in Bitcoin to keep the block time approximately to 10 minutes. I guess these are not determined by a central authority but ...
0
votes
0answers
14 views

3 S3 Antminers 1 S4 Antminer minimum Difficulty Question

OK this is kinda hobby but I have 3 S3 Antminers from Bitmain and 1 S4 Antminer and I am in a pool what should I set the min diff to for the S3's and S4 I know that the pool assigns min diff 128 do ...
1
vote
1answer
36 views

Special min difficulty rule for testnet

I heard about this "special difficulty rule" for testnet, which allows blocks with timestamp 20 min later than the last block to have the min difficulty target. So does it mean that the miners can ...
0
votes
0answers
19 views

Where can I find data on average difficulty increases per day, week or month?

I'm aware mining difficulty is very difficult to predict. So, most people do estimations based on historical data. Many calculators display an estimated percentage difficulty increase in a period of 1 ...
1
vote
1answer
83 views

In Math or Python notation - How to convert bits to difficulty?

Questions What are the equations to convert between bits and difficulty? & understanding bits and difficulty in a block header ask how to convert between bits and difficulty. Unfortunately, I ...
0
votes
1answer
23 views

Calculating the target from the hash leading off bits

I'm implementing my own cryptocurrency and I found it that saving the "hash difficulty” as the leading off bits of a 256 bit number in a SHA-256 hash is the most intuitive. I'm struggling to find a ...
0
votes
1answer
38 views

When computing the hash, do you need anything after the number of difficulty bits?

I'm going to screw up a lot of the terminology here. I'm trying to understand the Bitcoin algortihm and wanted to use this JS miner -- https://github.com/howardchung/jsminer . Specifically, I'm ...
1
vote
1answer
31 views

Why is explorers shows different difficulty values?

Just take a random block for example, for block 506068, blockchain.info shows difficulty as 2,603,077,300,218.59, while blockcypher shows 392,962,374, do the explorers use a different way to calculate ...
1
vote
0answers
83 views

Why mining pool has different connections ports for different difficulty

In the documentation of mining pool I found following Connect Details: (Difficulty 5 - GPU) stratum+tcp://stratum.btcprivate.org:3032 (Difficulty 10 - GPU Farm) stratum+tcp://stratum....
0
votes
2answers
62 views

Does a logical mining pool assign harder and harder difficulty to the same miner?

Although every mining pool can do things differently, I wanted to get a handle on how a logical pool would behave. If a miner joins the pool and solves a hash at a low difficult, submits the result ...
0
votes
1answer
82 views

Why do pools give rewards to miners who solve problems at a lower difficulty than the network?

I'm trying to understand why a pool would want to give rewards to miners who mine at low difficulty. Please tell me where this logic falls apart. If the network difficulty is a nonce ending in 100 ...
0
votes
1answer
355 views

Probability of Finding a Block

I've been using cryptocurrency revenue calculators and have appeared to figure out that for all of the major algorithms, the probability of a hash being valid is 1/(D*2^u) where u is either 0, 13 (...
1
vote
1answer
301 views

understanding bits and difficulty in a block header

This block: https://blockchain.info/block/00000000000000000025c089d0a7b2bf6241888c4dd90ab7a4c4baa6a2823551 Shows difficulty at 3,007,383,866,429.73, and bits at 392009692. If I want to see how many ...
2
votes
2answers
363 views

How do nonce and difficulty relate?

Good morning, I'm reading about Blockchain technology but I have a couple of questions about the nonce that I cannot find the answers for. I'm hoping someone here will be able to answer them. i) ...
2
votes
1answer
364 views

Share difficulty and hashrate

Can anybody explain relations and formulas between mining share difficulty, target and hashrate? Thank you.
0
votes
0answers
158 views

Setting a minimum difficulty on BTC.com

As the title already says, does someone know how to set a minimum difficulty on BTC.com? Is it possible at all? I was setting a difficulty by supplying d=<difficulty> as a password. Initially ...
0
votes
2answers
318 views

Why does bitcoin mining take so long?

I was wondering that a block (Here's a Block #506398) It's nonce is 1,229,291,212 (A little over a billion), Then why does it take so long to mine a block because my system alone can do about 500 GH/...
0
votes
0answers
62 views

How does difficulty have any effect on pooled mining profitability, it is still 10 minutes a block worldwide?

It seems more like profitability is reduced because there are more miners competing and not because of difficulty. In fact, if more miners join your pool profitability should not be reduced at all, ...
0
votes
1answer
46 views

Why can't a Bitcoin fork take over?

According to this question's answers, the difficulty is entirely a result of previous info on a blockchain: How is difficulty calculated? So why can't someone simply fork an earlier state of Bitcoin'...
1
vote
1answer
171 views

How is nbits calculated?

When generating a new block, how is the nbits field in block header calculated? Is nbits calculated for every new block like: nbits=nbits of last block * (timstamp of lastblock-timestamp of (...
0
votes
0answers
46 views

what are the criteria for a good share difficulty rate and how it's been calculated?

If the pool share difficulty is too hard, weak miners will get no share rewords on every block. Is it bad is it good? If the pool share difficulty is tot easy, strong miners may get a networking ...
0
votes
1answer
166 views

what is preventing me from changing difficulty every submit when pool mining?

If I do pool mining at difficulty=1000 and I find a share with difficulty=2000, I can tell the pool that I was mining at difficulty=2000 and then submit the share. I can earn more in this way. Does ...
0
votes
0answers
63 views

What are the pros and cons of Bitcoin difficulty algorithm

Based on bitcoin wiki, difficulty is calculated as follow: difficulty = difficulty_1_target / current_target (target is a 256 bit number) difficulty_1_target can be different for various ...
1
vote
1answer
115 views

Is the difficulty in mining a function of how much total mining power there are in the ecosystem?

I'm trying to understand how difficulty works in bitcoin mining. I understand that as there are less and less bitcoins left to be mined, the amount you get for each new block is lowered. The bit I ...
0
votes
0answers
37 views

Altcoin-qt (bitcoin clone) getDifficulty cli command not working in command line

I am using a altcoin which is a carbon copy of the bitcoin source code, and I'm trying to find out the difficulty on the blockchain. In the altcoin-qt, in the command line I type getDifficulty But ...
0
votes
1answer
51 views

Will there be a problem if bdiff and pdiff are slightly different?

Considering bitcoin target is 0x00000000FFFF0000000000000000000000000000000000000000000000000000 and pool target is 0x00000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF. Won't pool miner ...
0
votes
0answers
92 views

Calculate correct diff

I've engage in a little adventure of setting up my mining pool. While things are up and running pretty fine I find puzzling how to calculate the correct Diff, minDiff and maxDiff. This is a LTC ...
1
vote
2answers
172 views

How to lower difficulty on blockchain?

I created a coin (hexco.in) The problem now is, sometimes some user create pools and use rented mining rigs to mine on my coin. But after a while they stop and my blockchain stucks at a certain block....
3
votes
1answer
154 views

Why max target is not (2^256 - 1)?

I'm reading https://en.bitcoin.it/wiki/Difficulty And I don't get why max target is not (2^256 - 1) which is 0xFFFFFFFFFFFF... but 0x00000000FFFF...?
1
vote
2answers
140 views

Why does Bitcoin adjust the difficulty every 2016 instead of 2048 blocks?

I am reading Bitcoin wiki and it says over the previous 2016 blocks. Can be further simplified to D * 2**32 / 600 without much loss of accuracy. I guess the reason of reducing to 2**32 is ...
41
votes
8answers
13k views

Can bitcoin exist without miners?

In the past year only, the bitcoin mining difficulty has increased fivefold. If in the coming years the difficulty increases so much that mining is no longer profitable (i.e. consumes more power than ...
2
votes
1answer
74 views

Can a two-block-sized chain override the main chain?

After i read this: Honest generators only build onto a block (by referencing it in blocks they create) if it is the latest block in the longest valid chain. "Length" is calculated as total combined ...
0
votes
2answers
69 views

What would be the consequences to lower the difficulty such that a block is generated every 5 minutes?

The difficulty is adjusted such that a block is generated every 10 minutes. What would be the consequences to lower the difficulty such that a block is generated every 5 minutes?
0
votes
0answers
25 views

How can a 32 bit nonce cycle over so many hashes? [duplicate]

With 32 bit nonce, we have a max of 2^32 possibilities, while for bruteforcing the block, it is far more iterations. How does this work? Do they also have to keep changing the Merkle root (i.e., ...
1
vote
1answer
72 views

General Bitcoin questions [closed]

At the moment I'm trying to get a look inside Bitcoin and the Blockchain, but I'm having some general unanswered questions. How does a wallet know how much Bitcoins belongs to a specific address? I ...
4
votes
0answers
91 views

Formula for Bitcoin Difficulity [duplicate]

I'm wondering if anyone knows a formula for how to calculate the mining difficulty based on the current hash rate. For an example, if the BTC network would reach 20 million TH/s. Thank You!
1
vote
2answers
112 views

What are the implications of a huge amount of unused hash power?

A not unthinkable scenario is that the Bitcoin price decreases to, say, 10-20% of today's value. This would make mining less profitable, and the difficulty should adapt accordingly. This should lead ...
0
votes
0answers
187 views

How to predict staking time from Input size. POSv1

Similarly to a POW mining calculator where one can compare hash rate to difficulty to predict how long it might take to mine a block. Using the Peercoin calculation method where CoinAge is a multiple ...
0
votes
1answer
329 views

How to use API of BTC.com

I'd like to get some information(BTC's difficulty, hash rate). I think I can get that from api of BTC.com, and I checked github of btccom, but I can't mount api with python. How Can I use btccom api(...
4
votes
1answer
205 views

Attack vectors for difficulty retargeting with BCH and BTC?

Since the existence of BCH, miners can now switch chains to mine on. Assuming they mine greedily based on price and difficulty. Can the following attack happen and how could it be mitigated: Assuming ...