From 41cf5250014108d419df308aaa82c3df658f8a48 Mon Sep 17 00:00:00 2001 From: therealyingtong Date: Thu, 13 Aug 2020 12:30:00 +0800 Subject: [PATCH] Add missing curly braces after if statement --- src/wallet/rpcwallet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 707d3bb9f..2f2a46f57 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -3041,11 +3041,12 @@ UniValue zc_raw_joinsplit(const UniValue& params, bool fHelp) const bool canopyActive = Params().GetConsensus().NetworkUpgradeActive(nextBlockHeight, Consensus::UPGRADE_CANOPY); - if (params[3].get_real() != 0.0) + if (params[3].get_real() != 0.0) { if (canopyActive) { throw JSONRPCError(RPC_VERIFY_REJECTED, "Sprout shielding is not supported after Canopy"); } vpub_old = AmountFromValue(params[3]); + } if (params[4].get_real() != 0.0) vpub_new = AmountFromValue(params[4]);