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/miner.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/miner.h')
-rw-r--r-- | src/miner.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/miner.h b/src/miner.h index abd2ff6199..683f4fe085 100644 --- a/src/miner.h +++ b/src/miner.h @@ -139,13 +139,11 @@ private: // Configuration parameters for the block size bool fIncludeWitness; - unsigned int nBlockMaxWeight, nBlockMaxSize; - bool fNeedSizeAccounting; + unsigned int nBlockMaxWeight; CFeeRate blockMinFeeRate; // Information on the current status of the block uint64_t nBlockWeight; - uint64_t nBlockSize; uint64_t nBlockTx; uint64_t nBlockSigOpsCost; CAmount nFees; |