Skip to content

Commit df4e99d

Browse files
authored
Merge pull request #1423 from psgreco/master-win64-fixassert
Fix Assert crash in win64 native builds
2 parents 7ed2768 + 59c30c0 commit df4e99d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/primitives/confidential.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class CConfidentialValue : public CConfidentialCommitment<9, 8, 9>
149149
return -1;
150150
}
151151

152-
assert(IsExplicit());;
152+
assert(IsExplicit());
153153
return ReadBE64(&vchCommitment[1]);
154154
}
155155
void SetToAmount(CAmount nAmount);

src/wallet/spend.cpp

+2
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)