diff options
| author | Pieter Wuille <[email protected]> | 2017-02-26 16:13:17 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-02-26 16:13:17 -0800 |
| commit | 48faf0bf6388836b356ae5b931cc26cfdd9538cb (patch) | |
| tree | 6913619448f9ffa749a3e9a60846c1261f436051 /src/miner.h | |
| parent | Merge #9612: [trivial] Rephrase the definition of difficulty. (diff) | |
| download | discoin-48faf0bf6388836b356ae5b931cc26cfdd9538cb.tar.xz discoin-48faf0bf6388836b356ae5b931cc26cfdd9538cb.zip | |
Abstract out BlockAssembler options
Diffstat (limited to 'src/miner.h')
| -rw-r--r-- | src/miner.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/miner.h b/src/miner.h index 3ba92b16b..fc2526ff5 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); |