mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Add Elements-style witness serialization
This commit is contained in:
parent
6ed8fd8ab0
commit
fb72ee8fc8
50 changed files with 873 additions and 414 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue