diff options
author | fanquake <fanquake@gmail.com> | 2021-03-15 11:59:05 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-03-17 14:56:20 +0800 |
commit | ebc4ab721b0371c0ef217c0f5bd7d42613e951e6 (patch) | |
tree | c4f91deb60589d4d6e5c347d99ca7c611a01ee79 /src/miner.h | |
parent | 57e980d13ca488031bde6ef197cf34d493d36796 (diff) | |
download | bitcoin-ebc4ab721b0371c0ef217c0f5bd7d42613e951e6.tar.xz |
refactor: post Optional<> removal cleanups
Diffstat (limited to 'src/miner.h')
-rw-r--r-- | src/miner.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/miner.h b/src/miner.h index 236d792f1e..023635814c 100644 --- a/src/miner.h +++ b/src/miner.h @@ -6,12 +6,12 @@ #ifndef BITCOIN_MINER_H #define BITCOIN_MINER_H -#include <optional> #include <primitives/block.h> #include <txmempool.h> #include <validation.h> #include <memory> +#include <optional> #include <stdint.h> #include <boost/multi_index_container.hpp> @@ -160,8 +160,8 @@ public: /** Construct a new block template with coinbase to scriptPubKeyIn */ std::unique_ptr<CBlockTemplate> CreateNewBlock(CChainState& chainstate, const CScript& scriptPubKeyIn); - static std::optional<int64_t> m_last_block_num_txs; - static std::optional<int64_t> m_last_block_weight; + inline static std::optional<int64_t> m_last_block_num_txs{}; + inline static std::optional<int64_t> m_last_block_weight{}; private: // utility functions |