Questions tagged [difficulty-retargetting]
45 questions
14
votes
5 answers
Why not retarget on every block?
Should make things smoother and result in less oscillation. Is there a reason why retargetting is only every 2016 blocks?

kermit
- 2,019
- 1
- 17
- 26
4
votes
0 answers
Why does bitcoin limit the difficulty adjustment to a factor of four?
from here: https://github.com/bitcoin/bitcoin/blob/master/src/pow.cpp
// Limit adjustment step
int64_t nActualTimespan = pindexLast->GetBlockTime() - nFirstBlockTime;
if (nActualTimespan < params.nPowTargetTimespan/4)
nActualTimespan =…

Tue Minh
- 41
- 1
2
votes
1 answer
How is the hash target set and verified by all nodes?
As in the title - I understand that nodes look at the last two weeks of calculated hashes and adjust the difficulty to bring the average time to 10 minutes. But how exactly is this done?
In particular, all the nodes would have to agree on the same…

user1936752
- 155
- 8
1
vote
1 answer
Recalculating the target and truncating
The target on the block at height 32,255 was:
0x00000000ffff0000000000000000000000000000000000000000000000000000
After the adjustment, the target on the following block at height 32,256…

inersha
- 3,063
- 1
- 17
- 41