-
Notifications
You must be signed in to change notification settings - Fork 3k
Enforce minor Dogecoin parameters #1427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
rnicoll
commented
Jan 8, 2018
- Enable block constraints properly to reflect that Doge always had BIP16 and BIP30
- Update time-based constants including prune block size and fork detection parameters
BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
I've multiplied fork detection parameters by 5 - the wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times.
This updated various time-based constants to more closely reflect values appropriate to Dogecoin: * Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality.
I believe hard fork conditions were kept in for historical (or theoretical replay purposes). At least that's the reason why Bitcoin leaves them in. Should Dogecoin keep them in, too? I'm honestly not sure. |
You mean the BIP16/BIP30 conditions? I'm leaving the code in but disabled because it makes it easier to re-apply the patches for later versions. |
langerhans
approved these changes
Jan 20, 2018
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Feb 3, 2018
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Feb 3, 2018
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Feb 4, 2018
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Sep 19, 2018
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Oct 13, 2018
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Oct 13, 2018
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Apr 21, 2019
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Apr 21, 2019
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Apr 28, 2019
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
May 11, 2019
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
May 18, 2019
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Jul 13, 2019
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Jul 14, 2019
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Jul 14, 2019
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
May 30, 2021
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Jun 2, 2021
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Jun 2, 2021
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Jul 4, 2021
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
rnicoll
pushed a commit
to rnicoll/dogecoin
that referenced
this pull request
Jul 4, 2021
* Minimum number of blocks and blockchain size are increased for pruning. In comparison to Bitcoin this uses 24 hours as a minimum, rather than 48, although given blocks are rarely full this likely reflects a lot longer in reality. * Multiply fork detection parameters by 5. The wall clock time elapsed for "long" forks is therefore half that of Bitcoin, but IMHO those figures are excessive for a chain with 1 minute block times. * BIP16 and BIP30 have both been enabled on Dogecoin since inception and should not be conditional.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 15, 2021
…_processing and validation.h in order to match MIN_BLOCKS_TO_KEEP bumped in dogecoin#1427
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
…_processing and validation.h in order to match MIN_BLOCKS_TO_KEEP bumped in dogecoin#1427
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accomodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accomodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accomodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accomodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accomodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accomodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accomodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accomodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accomodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
xanimo
added a commit
to xanimo/dogecoin
that referenced
this pull request
Oct 18, 2021
reworked test to accommodate changes made in dogecoin#1427 bumps BLOCK_DOWNLOAD_WINDOW from 1024 to 1440 adds MIN_BLOCK_DOWNLOAD_MULTIPLIER to net_processing in order to bump consensus.nPowTargetSpacing from 1 to 10 second blocks in regtest as well as nCalculatedDlWindow when using debug=net flag.
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.