Skip to content

Conversation

rnicoll
Copy link
Contributor

@rnicoll 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

patricklodder and others added 3 commits January 8, 2018 22:33
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.
@rnicoll rnicoll requested a review from a team January 8, 2018 22:35
@Dafeesh
Copy link

Dafeesh commented Jan 9, 2018

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.

@rnicoll
Copy link
Contributor Author

rnicoll commented Jan 9, 2018

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.

@rnicoll rnicoll merged commit af5b9ae into dogecoin:1.14-dev Jan 20, 2018
@rnicoll rnicoll deleted the 1.14/bip-enforcement branch January 20, 2018 16:39
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.
@xanimo xanimo mentioned this pull request Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants