Author

Topic: ★★DigiByte|极特币★★[DGB]✔ Core v6.16.5.1 - DigiShield, DigiSpeed, Segwit - page 1433. (Read 3058809 times)

legendary
Activity: 1722
Merit: 1051
Official DigiByte Account
We also just posted the DigiShield explanation here: https://bitcointalksearch.org/topic/digibyte-what-is-digishield-how-it-works-to-retarget-difficulty-526721

So if you have questions about DigiShield please post it there.
legendary
Activity: 1722
Merit: 1051
Official DigiByte Account
What is DigiShield & How it Works to Retarget Difficulty

After receiving countless messages asking us what exactly DigiShield is we decided to write a post and explain everything in greater detail.

DigiShield re-targets a coin’s difficulty to protect against multi-pools and an over-inflation of easily mined new coins. DigiShield was originally developed for DigiByte, but has since been implemented into Dogecoin and will soon be implemented into more coins.  DigiShield re-targets a coin’s difficulty between every block or in the case of DigiByte & Dogecoin, every 60 seconds.

We created DigiShield after seeing the threat that multi-pools pose to a crypto currency when they start mining a coin at a very low difficulty in relation to their net pool hash. This allows many coins to be quickly and easily mined before the difficulty increases. Once the difficulty increases the multi-pool leaves a coin, dumps the coins on the market, and then leaves the dedicated existing miners with a very high difficulty and very few new coins to be mined.  This leads to a drop in price and frustration among the committed community members  & miners of the affected coin.
DigiShield protects DigiByte against this threat and helps ensure greater confidence in any coin that implements it by allowing the difficulty to rise and fall almost perfectly in sync with increases or decreases in the net hash of a coin.  The secret to DigiShield is an asymmetrical approach to difficulty re-targeting. With DigiShield, the difficulty is allowed to decrease in larger movements than it is allowed to increase from block to block. This keeps a blockchain from getting "stuck" i.e., not finding the next block for several hours following a major drop in the net hash of coin. It is all a balancing act. You need to allow the difficulty to increase enough between blocks to catch up to a sudden spike in net hash, but not enough to accidentally send the difficulty sky high when two miners get lucky and find blocks back to back. The same thing occurs with difficulty decreases. Since it takes much longer to find the next block, you need to allow it to drop quicker than it increases.

The KGW (Kimoto Gravity Well) and Earthcoin approaches to difficulty re-targeting are not as effective as DigiShield in protecting against multi-pools.  We conducted extensive testing over a five day period and found that an asymmetrical approach was much more effective than the KGW approach. We found that the difficulty needed to be able to decrease by a larger magnitude than it was allowed to increase. When the difficulty was allowed to increase or decrease at the same rate with larger orders of magnitude, some very bad oscillations occurred along with some crazy high difficulties when two lucky blocks were found quickly back to back. The asymmetrical adjustments keep the difficulty from going too high too fast, but allow it to drop much quicker after a large hash down swing as it takes a much longer time to discover the next two blocks for the difficulty adjustment to occur.

Both the KGW and Earthcoin approaches to difficulty re-targeting still allow multi-pools a few minutes of easy mining.  For example, Earthcoin still gets hit my multi-pools for 11-12 minutes at time. Both approaches limit the amount the difficulty is allowed to change between blocks, which can become a big issue when a sudden hash decrease occurs.  While simulating a sudden 10-20 fold hash decrease, KGW can become "stuck" for several hours before the next few blocks are discovered and the difficulty evens out again.  The same issue exists with the Earthcoin approach.  It can get "stuck" for 20-40 minutes following an 11 minute hash increase from a multi-pool attack.  We know a 10-20 fold hash increase is unusual, but it is possible, especially as cryptocurrencies become better known.  More than likely, we will only ever see more than a 5-10 fold increase.  Nonetheless, we wanted to develop something that protected against even the most unlikely of hash jumps to ensure that we could handle sudden extremes very quickly.  

In summary DigiShield is a balanced asymmetrical approach to difficulty re-targeting. You don't want to let the difficulty go too high too fast, but you need to give it enough room to catch up quickly. The same thing goes with down swings, since it takes longer to discover new blocks you need to give it more room to go down, but not enough to send it to the floor. DigiShield is by no means the absolute "perfect" solution to the multi pool/ difficulty problem, but after testing dozens of different setups over a five day period including KGW and the Earthcoin approach, the current ratios/ settings in DigiShield out performed any other solution available at the moment.

The DigiShield code can be found here between lines 833 & 1007:
https://github.com/digibyte/DigiByteProject/blob/master/src/main.cpp

Take a look at the Dogecoin difficulty chart:
 http://www.coinwarz.com/difficulty-charts/dogecoin-difficulty-chart.  
You can see how multi-pools have really been mining most of the coins and leaving the dedicated Doge miners to pick up the slack and get the short end of the stick when it comes to new coins. You can also see when DigiShield took effect and that no longer occurs.

Now take a look at the chart for DigiByte:
http://www.coinwarz.com/difficulty-charts/digibyte-difficulty-chart.  
You can see how we would get "stuck" after a multi pool left us and it would take several hours more than our 2.4 hour re-target before the difficulty came back down. Had we not implemented DigiShield when we were hit with the 1 GH - 8GH increase we might have been "stuck" for a day or more. See how quickly the pool hit us and left, and more importantly see how fast the difficulty decreased back to normal levels?  Since DigiShield went into effect, you can see how quickly multi-pools hit us and leave, whereby they mine considerably less coins now, upwards of 50-80% less.

legendary
Activity: 1722
Merit: 1051
Official DigiByte Account
X11 is awesome.. less electricity and heat.
Is that an ASIC?

It looks like a new algorithm
https://bitcointalksearch.org/topic/ann086-hirocoin-x11-ngw-secured-blockchain-time-warp-limitation-516349

Hard to say what I think about the scrypt ASICs.  I think they will destroy some coins for sure.  But coins that have a stable foundation, maybe the large spike in difficulty would aggressively and substantially increase market value.  DigiByte of course would be a contender for the latter. I don't know though about changing algos, I'm on the fence with this one.
Very good points Gazza. We also have thought that since Scrypt ASIC's will not give anywhere near the boost SHA-256 Bitcoin ASICs did it may not be a bad thing and in fact it might help secure the DigiByte blockchain and increase market value as you suggested.
full member
Activity: 238
Merit: 100
X11 is awesome.. less electricity and heat.
Is that an ASIC?

It looks like a new algorithm
https://bitcointalksearch.org/topic/ann086-hirocoin-x11-ngw-secured-blockchain-time-warp-limitation-516349

Hard to say what I think about the scrypt ASICs.  I think they will destroy some coins for sure.  But coins that have a stable foundation, maybe the large spike in difficulty would aggressively and substantially increase market value.  DigiByte of course would be a contender for the latter. I don't know though about changing algos, I'm on the fence with this one.
member
Activity: 85
Merit: 10


today,  new miner has published.

9999 $ =  (scrypt) 120  M hash/s


i think we must change the scrypt algorithm, and create a new algorithm to save altcoins.

[
    Digisheild VS MultiPool

]


Now,

DigiScrypt VS xxx

We are definitely looking into this and we are thoroughly researching other algorithms. It is highly unlikely this company will deliver by the date they mention, but none the less Scrypt ASICs are around the corner.

Scrypt ASIC's are not going to provide anywhere near the boost Bitcoin ASICS did but they are still going to lead to a centralization in Scrypt hashing as most people cannot afford to purchase $10,000 miners every few months.

Our goal is to keep DigiByte mineable by the average miner. We are looking at other algorithms and potentially may modify one and create our own unique approach.



I would like to understand this approach. Could you explain how keeping digibyte mineable by everyone and rising the price in a year go hand in hand so to say? Since the block reward in digibyte is quite high doesn't this approach lead to less price per digibyte, since anyone can just mine it, instead of buy it/ earn it in other ways?
legendary
Activity: 1722
Merit: 1051
Official DigiByte Account
Great news! We have ported DigiByte to the updated Bitcoin v0.9 protocol! We are testing it out some more but all appears to be working well!
legendary
Activity: 1722
Merit: 1051
Official DigiByte Account
hero member
Activity: 966
Merit: 1003
X11 is awesome.. less electricity and heat.
sr. member
Activity: 393
Merit: 250


today,  new miner has published.

9999 $ =  (scrypt) 120  M hash/s


i think we must change the scrypt algorithm, and create a new algorithm to save altcoins.

[
    Digisheild VS MultiPool

]


Now,

DigiScrypt VS xxx

We are definitely looking into this and we are thoroughly researching other algorithms. It is highly unlikely this company will deliver by the date they mention, but none the less Scrypt ASICs are around the corner.

Scrypt ASIC's are not going to provide anywhere near the boost Bitcoin ASICS did but they are still going to lead to a centralization in Scrypt hashing as most people cannot afford to purchase $10,000 miners every few months.

Our goal is to keep DigiByte mineable by the average miner. We are looking at other algorithms and potentially may modify one and create our own unique approach.



Scrypt-Jane ?
switched part of my 280xs' to UTC   Cool
sr. member
Activity: 434
Merit: 250


today,  new miner has published.

9999 $ =  (scrypt) 120  M hash/s


i think we must change the scrypt algorithm, and create a new algorithm to save altcoins.

[
    Digisheild VS MultiPool

]


Now,

DigiScrypt VS xxx

We are definitely looking into this and we are thoroughly researching other algorithms. It is highly unlikely this company will deliver by the date they mention, but none the less Scrypt ASICs are around the corner.

Scrypt ASIC's are not going to provide anywhere near the boost Bitcoin ASICS did but they are still going to lead to a centralization in Scrypt hashing as most people cannot afford to purchase $10,000 miners every few months.

Our goal is to keep DigiByte mineable by the average miner. We are looking at other algorithms and potentially may modify one and create our own unique approach.


Good luck digiteam Smiley
legendary
Activity: 1722
Merit: 1051
Official DigiByte Account


today,  new miner has published.

9999 $ =  (scrypt) 120  M hash/s


i think we must change the scrypt algorithm, and create a new algorithm to save altcoins.

[
    Digisheild VS MultiPool

]


Now,

DigiScrypt VS xxx

We are definitely looking into this and we are thoroughly researching other algorithms. It is highly unlikely this company will deliver by the date they mention, but none the less Scrypt ASICs are around the corner.

Scrypt ASIC's are not going to provide anywhere near the boost Bitcoin ASICS did but they are still going to lead to a centralization in Scrypt hashing as most people cannot afford to purchase $10,000 miners every few months.

Our goal is to keep DigiByte mineable by the average miner. We are looking at other algorithms and potentially may modify one and create our own unique approach.

sr. member
Activity: 421
Merit: 250


today,  new miner has published.

9999 $ =  (scrypt) 120  M hash/s


i think we must change the scrypt algorithm, and create a new algorithm to save altcoins.

[
    Digisheild VS MultiPool

]


Now,

DigiScrypt VS xxx
sr. member
Activity: 392
Merit: 250
sr. member
Activity: 280
Merit: 250
Wrt AMA, you came across as very professional - very good answers, enjoyed reading, and have even more faith in DGB!
same here!
Thank you for the feedback! We are looking forward to doing another AMA on the main Reddit AMA thread.

+1 Well done, Really glad to be part of the community with a coin with such great promise
member
Activity: 106
Merit: 10

IRC Chat window now added, come and chat with your fellow DigiByte miners at www.blazinghashes.com
legendary
Activity: 1722
Merit: 1051
Official DigiByte Account
Wrt AMA, you came across as very professional - very good answers, enjoyed reading, and have even more faith in DGB!
same here!
Thank you for the feedback! We are looking forward to doing another AMA on the main Reddit AMA thread.
legendary
Activity: 1722
Merit: 1051
Official DigiByte Account
legendary
Activity: 1498
Merit: 1001
CryptoCurrency EXchange: https://c-cex.com
sr. member
Activity: 434
Merit: 250
Wrt AMA, you came across as very professional - very good answers, enjoyed reading, and have even more faith in DGB!
same here!
hero member
Activity: 966
Merit: 1003
Wrt AMA, you came across as very professional - very good answers, enjoyed reading, and have even more faith in DGB!
Jump to: