mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
test: drop scriptPubKeyIn arg from CreateNewBlock
This removes the temporary overload added in the previous commit. Also drop unneeded custom coinbase output scripts.
This commit is contained in:
@@ -172,19 +172,11 @@ public:
|
||||
/** Construct a new block template */
|
||||
std::unique_ptr<CBlockTemplate> CreateNewBlock();
|
||||
|
||||
/** Temporary overload for tests */
|
||||
std::unique_ptr<CBlockTemplate> CreateNewBlock(const CScript& scriptPubKeyIn)
|
||||
{
|
||||
m_options.coinbase_output_script = scriptPubKeyIn;
|
||||
return CreateNewBlock();
|
||||
};
|
||||
|
||||
inline static std::optional<int64_t> m_last_block_num_txs{};
|
||||
inline static std::optional<int64_t> m_last_block_weight{};
|
||||
|
||||
private:
|
||||
// TODO: make const again
|
||||
Options m_options;
|
||||
const Options m_options;
|
||||
|
||||
// utility functions
|
||||
/** Clear the block's state and prepare for assembling a new block */
|
||||
|
||||
Reference in New Issue
Block a user