From 58164875aa5bf0de232a687126c4cb485daa4dba Mon Sep 17 00:00:00 2001 From: Gregory Sanders Date: Fri, 10 Mar 2017 09:38:38 -0500 Subject: [PATCH] Correctly unblind outputs in FillOutputBlinds --- src/rpc/rawtransaction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index d41d332729..bc23e1fcaf 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -524,7 +524,7 @@ void FillOutputBlinds(const CMutableTransaction& tx, bool fUseWallet, std::vecto uint256 blinding_factor; CAmount amount; #ifdef ENABLE_WALLET - if (fUseWallet && UnblindOutput(pwalletMain->blinding_key, tx.vout[nOut], amount, blinding_factor) != 0) { + if (fUseWallet && UnblindOutput(pwalletMain->GetBlindingKey(&tx.vout[nOut].scriptPubKey), tx.vout[nOut], amount, blinding_factor) != 0) { output_blinds.push_back(blinding_factor); output_pubkeys.push_back(CPubKey()); } else if (fUseWallet)