aboutsummaryrefslogtreecommitdiff
path: root/src/miner.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-12-18 15:46:16 -0500
committerCarl Dong <contact@carldong.me>2021-03-08 15:54:31 -0500
commit2afcf24408b4453e4418ebfb326b141f6ea8647c (patch)
tree5806ddfdacae5b9764c2859d35386122a77e5f17 /src/miner.cpp
parent46b7f29340acb399fbd2378508a204d8d8ee8fca (diff)
downloadbitcoin-2afcf24408b4453e4418ebfb326b141f6ea8647c.tar.xz
miner: Remove old CreateNewBlock w/o chainstate param
Diffstat (limited to 'src/miner.cpp')
-rw-r--r--src/miner.cpp5
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();