Title: Doge Coin Difficulty Post by: cle333 on May 23, 2025, 12:15:55 AM Hello everyone
Can someone explain to me how the algorithm works and how DOGE's difficulty is adjusted? Or does can read up on how it currently works? At the moment I use the following Code. Code: def calculate_next_difficulty(current_difficulty, time_delta_to_previous_block): This uses the difficulty of the last block and the time difference between the last two blocks. However, the formula is off by 0% - 5%. I tested it with the blocks that are then in the blockchain. Does anyone know the correct formula? (It might have something to do with the fact that most people mine Dogecoin and Litecoin together.) Thanks in advance Best regards Clemens Title: Re: Doge Coin Difficulty Post by: cle333 on May 26, 2025, 07:38:32 PM Does anyone have any idea how this works?
Title: Re: Doge Coin Difficulty Post by: nc50lc on May 30, 2025, 04:59:51 AM There seem to be more in DogeCoin's DigiShield algorithm than what's included in your code,
Check these lines for the actual formula used by DogeCoin. Link: github.com/dogecoin/dogecoin/blob/master/src/dogecoin.cpp#L50 (https://github.com/dogecoin/dogecoin/blob/2c513d0172e8bc86fe9a337693b26f2fdf68a013/src/dogecoin.cpp#L50) Does anyone have any idea how this works? It'll be hard to find Dogecoin specialists in this forum since we're on Bitcointalk, you can try their official Dogecoin forum for more elaborate answers. |