mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +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:
@@ -377,7 +377,8 @@ CBlock TestChain100Setup::CreateBlock(
|
||||
Chainstate& chainstate)
|
||||
{
|
||||
BlockAssembler::Options options;
|
||||
CBlock block = BlockAssembler{chainstate, nullptr, options}.CreateNewBlock(scriptPubKey)->block;
|
||||
options.coinbase_output_script = scriptPubKey;
|
||||
CBlock block = BlockAssembler{chainstate, nullptr, options}.CreateNewBlock()->block;
|
||||
|
||||
Assert(block.vtx.size() == 1);
|
||||
for (const CMutableTransaction& tx : txns) {
|
||||
|
||||
Reference in New Issue
Block a user