diff options
| author | John Newbery <[email protected]> | 2018-03-22 10:28:52 -0400 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2018-03-22 10:28:56 -0400 |
| commit | 4757c04cb98df2ab3a54c7e33ff9af3b1f7dc78b (patch) | |
| tree | 6eae7895389bfc29105e3188072e8db1129986d9 /src/miner.cpp | |
| parent | Merge #12048: Use best-fit strategy in Arena, now O(log(n)) instead O(n) (diff) | |
| download | discoin-4757c04cb98df2ab3a54c7e33ff9af3b1f7dc78b.tar.xz discoin-4757c04cb98df2ab3a54c7e33ff9af3b1f7dc78b.zip | |
[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.
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index 4b8644677..0660df928 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -68,9 +68,7 @@ BlockAssembler::BlockAssembler(const CChainParams& params, const Options& option static BlockAssembler::Options DefaultOptions(const CChainParams& params) { // Block resource limits - // If neither -blockmaxsize or -blockmaxweight is given, limit to DEFAULT_BLOCK_MAX_* - // If only one is given, only restrict the specified resource. - // If both are given, restrict both. + // If -blockmaxweight is not given, limit to DEFAULT_BLOCK_MAX_WEIGHT BlockAssembler::Options options; options.nBlockMaxWeight = gArgs.GetArg("-blockmaxweight", DEFAULT_BLOCK_MAX_WEIGHT); if (gArgs.IsArgSet("-blockmintxfee")) { |