mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Enable converttopsbt for PSET
This commit is contained in:
parent
4940ceeea6
commit
5425da4278
1 changed files with 4 additions and 8 deletions
|
|
@ -2039,15 +2039,11 @@ static RPCHelpMan converttopsbt()
|
|||
|
||||
// Make a blank psbt
|
||||
PartiallySignedTransaction psbtx(tx, 2 /* version */);
|
||||
/*
|
||||
// At this point, if the nonce field is present it should be a smuggled
|
||||
// pubkey, and not a real nonce. Convert it back to a pubkey and strip
|
||||
// it out.
|
||||
psbtx.outputs[i].blinding_pubkey = CPubKey(tx.vout[i].nNonce.vchCommitment);
|
||||
tx.vout[i].nNonce.SetNull();
|
||||
*/
|
||||
|
||||
psbtx.tx = tx;
|
||||
// Set the blinder index to 0 for all outputs that are blinded
|
||||
for (auto& outputs : psbtx.outputs) {
|
||||
outputs.m_blinder_index = 0;
|
||||
}
|
||||
|
||||
// Serialize the PSBT
|
||||
CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue