aboutsummaryrefslogtreecommitdiff
path: root/src/miner.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2017-02-26 16:13:17 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2017-02-26 16:13:17 -0800
commit48faf0bf6388836b356ae5b931cc26cfdd9538cb (patch)
tree6913619448f9ffa749a3e9a60846c1261f436051 /src/miner.h
parentf19afdbfb4cb2223d492d5e7d4087567af9d5f28 (diff)
Abstract out BlockAssembler options
Diffstat (limited to 'src/miner.h')
-rw-r--r--src/miner.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/miner.h b/src/miner.h
index 3ba92b16b8..fc2526ff5a 100644
--- a/src/miner.h
+++ b/src/miner.h
@@ -163,7 +163,16 @@ private:
bool blockFinished;
public:
- BlockAssembler(const CChainParams& chainparams);
+ struct Options {
+ Options();
+ size_t nBlockMaxWeight;
+ size_t nBlockMaxSize;
+ CFeeRate blockMinFeeRate;
+ };
+
+ BlockAssembler(const CChainParams& params);
+ BlockAssembler(const CChainParams& params, const Options& options);
+
/** Construct a new block template with coinbase to scriptPubKeyIn */
std::unique_ptr<CBlockTemplate> CreateNewBlock(const CScript& scriptPubKeyIn);