Skip to content

Commit 59c30c0

Browse files
committed
Blinding: update change_position after calling fillBlindDetails
1 parent 4058bd1 commit 59c30c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/spend.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,8 @@ static bool CreateTransactionInternal(
14461446
return false;
14471447
}
14481448
txNew = tx_blinded; // sigh, `fillBlindDetails` may have modified txNew
1449+
// Update the change position to the new tx
1450+
change_position = txNew.vout.begin() + nChangePosInOut;
14491451

14501452
int ret = BlindTransaction(blind_details->i_amount_blinds, blind_details->i_asset_blinds, blind_details->i_assets, blind_details->i_amounts, blind_details->o_amount_blinds, blind_details->o_asset_blinds, blind_details->o_pubkeys, issuance_asset_keys, issuance_token_keys, tx_blinded);
14511453
assert(ret != -1);

0 commit comments

Comments
 (0)