-
Notifications
You must be signed in to change notification settings - Fork 38.7k
[config] Remove blockmaxsize option #12756
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
Conversation
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.
|
concept ACK |
|
Concept ACK |
|
utACK - should it be an error if this option is provided anyway? (as done in |
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. |
|
Well it maybe that no one noticed because it's silently ignored. But agree it's not critical and I don't particularly care. |
|
Aren't the others just using an initwarning, which prints to debug log, but
continues?
…On Thu, Mar 22, 2018, 11:36 John Newbery ***@***.***> 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
<#12756 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGGmvwgQdTeO5qdUv5IVWkD93dqHTKD-ks5tg8TogaJpZM4S3J-3>
.
|
|
You're right. Some are errors, some are warnings. I think the rationale for making the tor-related ones critical is privacy. |
|
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..
👍 utACK 4757c04. |
|
utACK 4757c04 |
1 similar comment
|
utACK 4757c04 |
ajtowns
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
| """ | ||
| self.add_nodes(3, extra_args=[["-maxorphantx=1000", "-whitelist=127.0.0.1"], | ||
| ["-blockmaxsize=17000", "-maxorphantx=1000"], | ||
| ["-blockmaxsize=8000", "-maxorphantx=1000"]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
| # Reboot node 1 to clear its mempool (hopefully make the invalidate faster) | ||
| # Lower the block max size so we don't keep mining all our big mempool transactions (from disconnected blocks) | ||
| self.stop_node(1) | ||
| self.start_node(1, extra_args=["-maxreceivebuffer=20000","-blockmaxsize=5000", "-checkblocks=5", "-disablesafemode"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise, this should set blockmaxweight=20000 in keeping with the comment above about not mining big mempool transactions.
|
|
||
| # Reboot node1 to clear those giant tx's from mempool | ||
| self.stop_node(1) | ||
| self.start_node(1, extra_args=["-maxreceivebuffer=20000","-blockmaxsize=5000", "-checkblocks=5", "-disablesafemode"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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?
These tests were changed/broken(?) by #11100, when 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 |
|
utACK 4757c04. Good catch. |
|
-blockmaxsize needs to be removed from bitcoind.1 & bitcoin-qt.1 in doc/man. |
|
@fanquake Those are only updated before every rc |
4757c04 [config] Remove blockmaxsize option (John Newbery) Pull request description: 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 Tree-SHA512: 968d71d37bf175c5a02539ddec289a12586f886e1dfe64c1d9aa5e39db48d06d21665153824fac3b11503a55f0812d2f1115a2d726aafd37b76ed629ec0aa671
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. GitHub-Pull: bitcoin#12756 Rebased-From: 4757c04
8fca086 List support for BIP173 in bips.md (Pieter Wuille) 9645aa6 Remove blockmaxsize option from init.cpp (fanquake) 7847b92 Default to defining endian-conversion DECLs in compat w/o config (Matt Corallo) 1720eb3 qt:Show the entire Window when double clicking on taskbar (Chun Kuan Lee) e055bc0 depends: Fix Qt build with XCode 9.3 (fanquake) 0684cf9 Avoid launching as admin when NSIS installer ends. (JeremyRand) e802c22 [config] Remove blockmaxsize option (John Newbery) f118a7a Fix illegal default `addProxy` and `addrSeparateProxyTor` settings. (251) f60e84d Limit the number of IPs we use from each DNS seeder (e0) Pull request description: Backports: - #12626 Limit the number of IPs addrman learns from each DNS seeder - #12650 gui: Fix issue: "default port not shown correctly in settings dialog" - #12756 [config] Remove blockmaxsize option - #12985 Windows: Avoid launching as admin when NSIS installer ends. - #12946 depends: Fix Qt build with XCode 9.3 - #12998 Default to defining endian-conversion DECLs in compat w/o config - #12999 qt: Show the Window when double clicking the taskbar icon - #13064 List support for BIP173 in bips.md to the 0.16 branch. Tree-SHA512: 3e6b47c54b2cd2bdd81fbc6176cb31e46423f6e05988984d3a09b3535e3cee101ffb071cf753a4beff3c9f0521eb5de4b7c0424a3e97da801d56b4015847ac0f
|
Backported in #12967 |
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. GitHub-Pull: bitcoin#12756 Rebased-From: 4757c04
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