diff options
author | Matt Corallo <git@bluematt.me> | 2017-08-24 11:36:07 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-09-11 15:51:25 -0400 |
commit | ba206d2c63a8d3cbd4a8dd47e9ef126af1bb3bb9 (patch) | |
tree | ae365cb374d581224b5fee69629e4f235f0d71f4 /src/policy/policy.h | |
parent | 31e72b284ef54c4c221015c8d700946c6143fb7a (diff) |
Deprecate confusing blockmaxsize, fix getmininginfo output
* This removes block-size-limiting code in favor of GBT clients
doing the limiting themselves (if at all).
* -blockmaxsize is deprecated and only used to calculate an implied
blockmaxweight, addressing confusion from multiple users.
* getmininginfo's currentblocksize return value was returning
garbage values, and has been removed, also removing a
GetSerializeSize call in some block generation inner loops and
potentially addressing some performance edge cases.
Diffstat (limited to 'src/policy/policy.h')
-rw-r--r-- | src/policy/policy.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h index c06820f84e..7024713834 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -16,8 +16,6 @@ class CCoinsViewCache; class CTxOut; -/** Default for -blockmaxsize, which controls the maximum size of block the mining code will create **/ -static const unsigned int DEFAULT_BLOCK_MAX_SIZE = 750000; /** Default for -blockmaxweight, which controls the range of block weights the mining code will create **/ static const unsigned int DEFAULT_BLOCK_MAX_WEIGHT = 3000000; /** Default for -blockmintxfee, which sets the minimum feerate for a transaction in blocks created by mining code **/ |