aboutsummaryrefslogtreecommitdiff
path: root/src/miner.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2017-08-24 11:36:07 -0400
committerMatt Corallo <git@bluematt.me>2017-09-11 15:51:25 -0400
commitba206d2c63a8d3cbd4a8dd47e9ef126af1bb3bb9 (patch)
treeae365cb374d581224b5fee69629e4f235f0d71f4 /src/miner.h
parent31e72b284ef54c4c221015c8d700946c6143fb7a (diff)
downloadbitcoin-ba206d2c63a8d3cbd4a8dd47e9ef126af1bb3bb9.tar.xz
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.h4
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;