[config] Remove blockmaxsize option #12756

pull jnewbery wants to merge 1 commits into bitcoin:master from jnewbery:remove_blockmaxsize changing 6 files +18 −23
  1. jnewbery commented at 2:31 pm on March 22, 2018: member

    The blockmaxsize option was marked as deprecated in V0.15.1, and code was added to convert provided blockmaxsize into blockmaxweight. However, this code was incorrectly implemented, and blockmaxsize was silently ignored.

    No users have complained about blockmaxsize being ignored, so just remove it in V0.17.

    Fixes #12640

    cc @ajtowns

  2. [config] Remove blockmaxsize option
    The blockmaxsize option was marked as deprecated in V0.15.1, and code
    was added to convert provided blockmaxsize into blockmaxweight. However,
    this code was incorrectly implemented, and blockmaxsize was silently
    ignored.
    
    No users have complained about blockmaxsize being ignored, so just
    remove it in V0.17.
    4757c04cb9
  3. fanquake added the label Mining on Mar 22, 2018
  4. instagibbs commented at 2:45 pm on March 22, 2018: member
    concept ACK
  5. practicalswift commented at 3:04 pm on March 22, 2018: contributor
    Concept ACK
  6. laanwj commented at 3:31 pm on March 22, 2018: member
    utACK - should it be an error if this option is provided anyway? (as done in AppInitParameterInteraction() for some other deprecated options such -tor/-socks)
  7. jnewbery commented at 3:35 pm on March 22, 2018: member

    should it be an error if this option is provided anyway?

    Perhaps, although this option has been ignored since V0.15.1. Not sure if we need to start throwing an error now.

    Happy to add an error (and test) if people think it’s necessary.

  8. laanwj commented at 3:36 pm on March 22, 2018: member
    Well it maybe that no one noticed because it’s silently ignored. But agree it’s not critical and I don’t particularly care.
  9. MarcoFalke commented at 3:37 pm on March 22, 2018: member

    Aren’t the others just using an initwarning, which prints to debug log, but continues?

    On Thu, Mar 22, 2018, 11:36 John Newbery notifications@github.com wrote:

    should it be an error if this option is provided anyway?

    Perhaps, although this option has been ignored since V0.15.1. Not sure if we need to start throwing an error now.

    Happy to add an error (and test) if people think it’s necessary.

    — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bitcoin/bitcoin/pull/12756#issuecomment-375350688, or mute the thread https://github.com/notifications/unsubscribe-auth/AGGmvwgQdTeO5qdUv5IVWkD93dqHTKD-ks5tg8TogaJpZM4S3J-3 .

  10. laanwj commented at 3:39 pm on March 22, 2018: member
    You’re right. Some are errors, some are warnings. I think the rationale for making the tor-related ones critical is privacy.
  11. promag commented at 3:43 pm on March 22, 2018: member

    Throwing an error will force the user to adjust the config once he updates the software - this keeps the config clean and up to date. On the other hand he should read release notes and do the same cleanup..

    But agree it’s not critical and I don’t particularly care.

    :+1:

    utACK 4757c04.

  12. achow101 commented at 5:06 pm on March 22, 2018: member
    utACK 4757c04cb98df2ab3a54c7e33ff9af3b1f7dc78b
  13. sipa commented at 11:14 pm on March 22, 2018: member
    utACK 4757c04cb98df2ab3a54c7e33ff9af3b1f7dc78b
  14. in test/functional/feature_fee_estimation.py:137 in 4757c04cb9
    132@@ -133,8 +133,8 @@ def setup_network(self):
    133         which we will use to generate our transactions.
    134         """
    135         self.add_nodes(3, extra_args=[["-maxorphantx=1000", "-whitelist=127.0.0.1"],
    136-                                      ["-blockmaxsize=17000", "-maxorphantx=1000"],
    137-                                      ["-blockmaxsize=8000", "-maxorphantx=1000"]])
    


    ajtowns commented at 2:59 am on March 23, 2018:
    I think these should be changed to -blockmaxweight=68000 and 3200. (The code expects node[2] to not be able to mine all transactions, in particular)
  15. in test/functional/feature_pruning.py:127 in 4757c04cb9
    123@@ -124,7 +124,7 @@ def reorg_test(self):
    124         # Reboot node 1 to clear its mempool (hopefully make the invalidate faster)
    125         # Lower the block max size so we don't keep mining all our big mempool transactions (from disconnected blocks)
    126         self.stop_node(1)
    127-        self.start_node(1, extra_args=["-maxreceivebuffer=20000","-blockmaxsize=5000", "-checkblocks=5", "-disablesafemode"])
    


    ajtowns commented at 3:01 am on March 23, 2018:
    Likewise, this should set blockmaxweight=20000 in keeping with the comment above about not mining big mempool transactions.
  16. in test/functional/feature_pruning.py:150 in 4757c04cb9
    146@@ -147,7 +147,7 @@ def reorg_test(self):
    147 
    148         # Reboot node1 to clear those giant tx's from mempool
    149         self.stop_node(1)
    150-        self.start_node(1, extra_args=["-maxreceivebuffer=20000","-blockmaxsize=5000", "-checkblocks=5", "-disablesafemode"])
    


    ajtowns commented at 3:06 am on March 23, 2018:

    This should also probably set blockmaxweight=20000.

    The stop_node / start_node here is an attempt to flush the mempool; but I wonder if that actually does any good if the mempool is being persisted to disk anyway?

  17. ajtowns commented at 3:08 am on March 23, 2018: member

    As noted, I think some of the tests need to be updated to use blockmaxweight rather than just not using blockmaxsize anymore.

    Otherwise looks good.

  18. jnewbery commented at 1:35 pm on March 23, 2018: member

    I think some of the tests need to be updated

    These tests were changed/broken(?) by #11100, when -blockmaxsize was broken. This PR currently doesn’t change any behaviour in those tests.

    Rather than hold this PR up, can we open an issue to track fixing the miner block sizes in those tests and fix separately?

    EDIT: opened issue #12768

  19. hkjn commented at 2:17 pm on March 23, 2018: contributor

    utACK 4757c04.

    Good catch.

  20. fanquake commented at 4:23 am on March 26, 2018: member
    -blockmaxsize needs to be removed from bitcoind.1 & bitcoin-qt.1 in doc/man.
  21. MarcoFalke commented at 12:43 pm on March 26, 2018: member
    @fanquake Those are only updated before every rc
  22. jnewbery commented at 1:11 pm on March 26, 2018: member
    Five utACKs (@laanwj @promag @achow101 @sipa @hkjn). Ready for merge?
  23. laanwj merged this on Mar 26, 2018
  24. laanwj closed this on Mar 26, 2018

  25. laanwj referenced this in commit ec7dbaa37c on Mar 26, 2018
  26. jnewbery deleted the branch on Mar 26, 2018
  27. fanquake referenced this in commit 501f9927dd on Apr 16, 2018
  28. MarcoFalke referenced this in commit a97d76c379 on Apr 20, 2018
  29. fanquake referenced this in commit e802c22947 on Apr 26, 2018
  30. laanwj referenced this in commit feba12fe85 on May 16, 2018
  31. fanquake commented at 2:29 pm on May 16, 2018: member
    Backported in #12967
  32. HashUnlimited referenced this in commit 0d0dc5304a on Jun 29, 2018
  33. ccebrecos referenced this in commit a70fb3ba11 on Sep 14, 2018
  34. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-21 15:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me