4 ms·
Something that I still don't quite get: Who adjusts the difficulty. As far as I understand there still is a central server somewhere who broadcasts the difficul
by codesuela 14y ago
Something that I still don't quite get:
Who adjusts the difficulty. As far as I understand there still is a central server somewhere who broadcasts the difficulty and awards Bitcoins which to me kind of clashes with the distributed nature of Bitcoins.
- doublec 14y agoThere 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.