mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge 08ea835220 into merged_master (Bitcoin PR bitcoin/bitcoin#28583)
This commit is contained in:
commit
69492d27da
46 changed files with 165 additions and 164 deletions
|
|
@ -119,7 +119,7 @@ std::shared_ptr<const CBlock> MinerTestingSetup::BadBlock(const uint256& prev_ha
|
|||
auto pblock = Block(prev_hash);
|
||||
|
||||
CMutableTransaction coinbase_spend;
|
||||
coinbase_spend.vin.push_back(CTxIn(COutPoint(pblock->vtx[0]->GetHash(), 0), CScript(), 0));
|
||||
coinbase_spend.vin.emplace_back(COutPoint(pblock->vtx[0]->GetHash(), 0), CScript(), 0);
|
||||
coinbase_spend.vout.push_back(pblock->vtx[0]->vout[0]);
|
||||
|
||||
CTransactionRef tx = MakeTransactionRef(coinbase_spend);
|
||||
|
|
@ -247,7 +247,7 @@ BOOST_AUTO_TEST_CASE(mempool_locks_reorg)
|
|||
std::vector<CTransactionRef> txs;
|
||||
for (int num_txs = 22; num_txs > 0; --num_txs) {
|
||||
CMutableTransaction mtx;
|
||||
mtx.vin.push_back(CTxIn{COutPoint{last_mined->vtx[0]->GetHash(), 1}, CScript{}});
|
||||
mtx.vin.emplace_back(COutPoint{last_mined->vtx[0]->GetHash(), 1}, CScript{});
|
||||
mtx.witness.vtxinwit.resize(1);
|
||||
mtx.witness.vtxinwit[0].scriptWitness.stack.push_back(WITNESS_STACK_ELEM_OP_TRUE);
|
||||
mtx.vout.push_back(last_mined->vtx[0]->vout[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue