From 48751f33b63007f9dff9b8b66165e8bc96f8b276 Mon Sep 17 00:00:00 2001 From: Mark Friedenbach Date: Fri, 10 Mar 2017 10:06:56 -0800 Subject: [PATCH] use IsNull for CConfidentialNonce --- src/bitcoin-tx.cpp | 2 +- src/rpc/rawtransaction.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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