4 ms·
There is no such central server. The difficulty is adjusted using an algorithm that all the bitcoin clients implement. This looks at the generation times of the
by doublec 14y ago
There is no such central server. The difficulty is adjusted using an algorithm that all the bitcoin clients implement. This looks at the generation times of the last 2,016 blocks and works out from that if difficulty needs to be higher or lower.
Since all clients implement the same algorithm, they all get the same difficulty value.
- jerguismi 14y agoAnd if some clients decide to calculate difficulty differently, it results in a block chain fork.
- tocomment 14y agoCould someone program up a client that "cheats"? Or is there something preventing that.
- doublec 14y agoAny blocks that client produced would not match the expectations of the other clients. The difficulty being different would mean a successful hash that solves the block may not be seen as solving it by the other clients. They would reject it and your cheating client would be on its own fork. If you could convince others to run your client then your network would get bigger. If it got >50% of the entire network then your blockchain would effectively be the main chain.
- ksadeghi 14y agoIt would also have to maintain the >50% hashing power for more than 120 blocks. And even then it's not guaranteed as smaller pools could get lucky and solve more blocks than the larger rouge miner.