f "CT: Turn CTxOut::vchNonceCommitment into a CConfidentialCommitment subclass"

This commit is contained in:
Mark Friedenbach 2017-03-10 10:06:56 -08:00 committed by Gregory Sanders
parent 3672383a54
commit d081aeda5e
2 changed files with 2 additions and 2 deletions

View file

@ -337,7 +337,7 @@ static void MutateTxBlind(CMutableTransaction& tx, const string& strInput)
for (size_t nOut = 0; nOut < tx.vout.size(); nOut++) {
if (!tx.vout[nOut].nValue.IsExplicit())
throw runtime_error("Invalid parameter: transaction outputs must be unblinded");
if (tx.vout[nOut].nNonce.vchCommitment.size() == 0) {
if (tx.vout[nOut].nNonce.IsNull()) {
output_pubkeys.push_back(CPubKey());
} else {
CPubKey pubkey(tx.vout[nOut].nNonce.vchCommitment);

View file

@ -601,7 +601,7 @@ void FillOutputBlinds(CMutableTransaction& tx, bool fUseWallet, std::vector<uint
output_pubkeys.push_back(CPubKey());
output_value_blinds.push_back(uint256());
output_asset_blinds.push_back(uint256());
} else if (tx.vout[nOut].nNonce.vchCommitment.size() == 0) {
} else if (tx.vout[nOut].nNonce.IsNull()) {
output_pubkeys.push_back(CPubKey());
output_value_blinds.push_back(uint256());
output_asset_blinds.push_back(uint256());