File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,11 @@ void BlockAssembler::resetBlock()
96
96
nFees = 0 ;
97
97
}
98
98
99
+ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock (const CScript& scriptPubKeyIn)
100
+ {
101
+ return CreateNewBlock (::ChainstateActive (), scriptPubKeyIn);
102
+ }
103
+
99
104
std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock (CChainState& chainstate, const CScript& scriptPubKeyIn)
100
105
{
101
106
int64_t nTimeStart = GetTimeMicros ();
Original file line number Diff line number Diff line change @@ -158,6 +158,7 @@ class BlockAssembler
158
158
explicit BlockAssembler (const CTxMemPool& mempool, const CChainParams& params, const Options& options);
159
159
160
160
/* * Construct a new block template with coinbase to scriptPubKeyIn */
161
+ std::unique_ptr<CBlockTemplate> CreateNewBlock (const CScript& scriptPubKeyIn);
161
162
std::unique_ptr<CBlockTemplate> CreateNewBlock (CChainState& chainstate, const CScript& scriptPubKeyIn);
162
163
163
164
inline static std::optional<int64_t > m_last_block_num_txs{};
You can’t perform that action at this time.
0 commit comments