Bitcoin Forum
May 28, 2024, 11:19:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: CREDITS [CRE] | Request for comments | Difficulty retarget algorithm adjustment  (Read 534 times)
Gabriel Eiger (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250

Lead developer of Credits [CRE]


View Profile
May 29, 2015, 10:59:39 PM
Last edit: May 30, 2015, 10:53:35 AM by Gabriel Eiger
 #1

This is a request for comments regarding updates to the Credits difficulty retarget algorithm.

Background:
The Credit blockchain is generated from a combined proof-of-work/proof-of-deposit system. This deposit system is still coming into effect as the blockchain evolves and it will start to have larger effects on the block creation process in approximately three months time. At the moment it is unknown what the effects on the difficulty and block creation process will be when deposit starts to have a larger impact. An adjustment of the difficulty retargeting mechanism is therefore suggested, to allow for faster adaption of the difficulty in case of varying deposit and processing power inputs. Faster adaption of the difficulty will also prevent the block creation process from being stuck to long in a too high difficulty.

Suggested adjustment:
Credits has so far been using the same difficulty retargeting mechanism as Bitcoin. That means that an adjustment of the difficulty happens every 2016 block. If the block creation process has been longer than two weeks for the latest 2016 blocks, the difficulty will rise, and it will fall if the block creation process has been faster. The difficulty adjustment is capped with a factor of 4 up or down, to prevent too large swings in difficulty.

The suggested adjustment of the retargeting mechanism is to have more frequent adjustments, with a lower cap for each adjustment. The retargeting period should be lowered to 1/8 of 2016 blocks, which means a difficulty adjustment every 252 blocks. The cap would be a factor of 1.25 for each period, giving a maximum difficulty adjustment of 5.96 over a period of 2016 blocks, as compared to Bitcoins 4.

An alternative proposal would be adjustment every 504 blocks, with a cap of 1.5. This would give a maximum adjustment of 5.06 for every 2016 blocks.

The new retargeting algorithm would be scheduled to start to have effect somewhere at block 24000 to 26000, or later if deemed necessary.


Credits official thread:
https://bitcointalk.org/index.php?topic=1037244.new#new

████████████████  C R E D I T S - [C R E]  ███████████████
████████  The next evolutionary step in crypto-currency | Sidechain technology - Claimable - sha256   ███████
◥ Proof of Work / Proof of Deposit mining system ◥ Official Website ◥ Bitcointalk Thread ◥ Exchange
GreydonIselmoe
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250


Credits [CRE] - Community Manager


View Profile WWW
May 30, 2015, 12:05:35 AM
 #2

In my opinion, the rule change is welcomed and solid at 252 blocks, but the factor of 1.25x per retarget period of 252 seems a bit low, if you wanted an adaptable coin with an adaptable difficulty, I'd go for a cap of 1.5 for each period of 252 blocks.

Just my two cents, and ultimately you're the one making the decisions based off the communities input Smiley I'm a firm believer in the shorter the retargetting period, the better.

Greydon


████████  The next evolutionary step in crypto-currency | Sidechain technology - Claimable - sha256   ███████
████████████████  C R E D I T S - [C R E]  ███████████████
◥ Proof of Work / Proof of Deposit mining system ◥ Official Website ◥ Bitcointalk Thread ◥ Exchange
Gabriel Eiger (OP)
Sr. Member
****
Offline Offline

Activity: 280
Merit: 250

Lead developer of Credits [CRE]


View Profile
May 30, 2015, 10:54:50 AM
 #3

In my opinion, the rule change is welcomed and solid at 252 blocks, but the factor of 1.25x per retarget period of 252 seems a bit low, if you wanted an adaptable coin with an adaptable difficulty, I'd go for a cap of 1.5 for each period of 252 blocks.

Just my two cents, and ultimately you're the one making the decisions based off the communities input Smiley I'm a firm believer in the shorter the retargetting period, the better.

Greydon



Thank you for the input, most welcome.

I tend to agree with you, that it might be correct with a combination of the two, short retarget periods with a higher cap.

████████████████  C R E D I T S - [C R E]  ███████████████
████████  The next evolutionary step in crypto-currency | Sidechain technology - Claimable - sha256   ███████
◥ Proof of Work / Proof of Deposit mining system ◥ Official Website ◥ Bitcointalk Thread ◥ Exchange
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!