Skip to content

Commit 2afcf24

Browse files
committed
miner: Remove old CreateNewBlock w/o chainstate param
1 parent 46b7f29 commit 2afcf24

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/miner.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ void BlockAssembler::resetBlock()
9999
Optional<int64_t> BlockAssembler::m_last_block_num_txs{nullopt};
100100
Optional<int64_t> BlockAssembler::m_last_block_weight{nullopt};
101101

102-
std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& scriptPubKeyIn)
103-
{
104-
return CreateNewBlock(::ChainstateActive(), scriptPubKeyIn);
105-
}
106-
107102
std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(CChainState& chainstate, const CScript& scriptPubKeyIn)
108103
{
109104
int64_t nTimeStart = GetTimeMicros();

src/miner.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ class BlockAssembler
158158
explicit BlockAssembler(const CTxMemPool& mempool, const CChainParams& params, const Options& options);
159159

160160
/** Construct a new block template with coinbase to scriptPubKeyIn */
161-
std::unique_ptr<CBlockTemplate> CreateNewBlock(const CScript& scriptPubKeyIn);
162161
std::unique_ptr<CBlockTemplate> CreateNewBlock(CChainState& chainstate, const CScript& scriptPubKeyIn);
163162

164163
static Optional<int64_t> m_last_block_num_txs;

0 commit comments

Comments
 (0)