diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index be65f63807..0d0fed4efb 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -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); diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 5aa97e2f00..1263e71065 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -614,7 +614,7 @@ void FillOutputBlinds(CMutableTransaction& tx, bool fUseWallet, std::vector