mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02: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:
parent
ff41b9e296
commit
52fd1511a7
15 changed files with 85 additions and 62 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue