Add Elements-style witness serialization

This commit is contained in:
Steven Roose 2019-01-29 12:39:33 +00:00
parent 6ed8fd8ab0
commit fb72ee8fc8
50 changed files with 873 additions and 414 deletions

View file

@ -61,7 +61,8 @@ std::shared_ptr<CBlock> Block(const uint256& prev_hash)
CMutableTransaction txCoinbase(*pblock->vtx[0]);
txCoinbase.vout.resize(1);
txCoinbase.vin[0].scriptWitness.SetNull();
txCoinbase.witness.vtxinwit.resize(1);
txCoinbase.witness.vtxinwit[0].scriptWitness.SetNull();
pblock->vtx[0] = MakeTransactionRef(std::move(txCoinbase));
return pblock;