Add missing curly braces after if statement

This commit is contained in:
therealyingtong 2020-08-13 12:30:00 +08:00
parent 9e117fdebe
commit 41cf525001
No known key found for this signature in database
GPG Key ID: 179F32A1503D607E
1 changed files with 2 additions and 1 deletions

View File

@ -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]);