use IsNull for CConfidentialNonce

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

View file

@ -470,7 +470,7 @@ static void MutateTxBlind(CMutableTransaction& tx, const std::string& strInput)
for (size_t nOut = 0; nOut < tx.vout.size(); nOut++) {
if (!tx.vout[nOut].nValue.IsExplicit())
throw std::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

@ -614,7 +614,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());