diff options
author | Carl Dong <contact@carldong.me> | 2020-12-18 15:46:16 -0500 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-03-08 15:54:31 -0500 |
commit | 2afcf24408b4453e4418ebfb326b141f6ea8647c (patch) | |
tree | 5806ddfdacae5b9764c2859d35386122a77e5f17 /src/miner.cpp | |
parent | 46b7f29340acb399fbd2378508a204d8d8ee8fca (diff) | |
download | bitcoin-2afcf24408b4453e4418ebfb326b141f6ea8647c.tar.xz |
miner: Remove old CreateNewBlock w/o chainstate param
Diffstat (limited to 'src/miner.cpp')
-rw-r--r-- | src/miner.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index e0e5ad41fe..444edb6976 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -99,11 +99,6 @@ void BlockAssembler::resetBlock() Optional<int64_t> BlockAssembler::m_last_block_num_txs{nullopt}; Optional<int64_t> BlockAssembler::m_last_block_weight{nullopt}; -std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& scriptPubKeyIn) -{ - return CreateNewBlock(::ChainstateActive(), scriptPubKeyIn); -} - std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(CChainState& chainstate, const CScript& scriptPubKeyIn) { int64_t nTimeStart = GetTimeMicros(); |