diff --git a/src/rpc/abc.cpp b/src/rpc/abc.cpp --- a/src/rpc/abc.cpp +++ b/src/rpc/abc.cpp @@ -50,17 +50,20 @@ ebs = request.params[0].get_int64(); } else { std::string temp = request.params[0].get_str(); - if (temp[0] == '-') boost::throw_exception(boost::bad_lexical_cast()); + if (temp[0] == '-') { + boost::throw_exception(boost::bad_lexical_cast()); + } ebs = boost::lexical_cast(temp); } // Do not allow maxBlockSize to be set below historic 1MB limit - if (ebs <= LEGACY_MAX_BLOCK_SIZE) + if (ebs <= LEGACY_MAX_BLOCK_SIZE) { throw JSONRPCError( RPC_INVALID_PARAMETER, std::string( "Invalid parameter, excessiveblock must be larger than ") + std::to_string(LEGACY_MAX_BLOCK_SIZE)); + } // Set the new max block size. if (!config.SetMaxBlockSize(ebs)) {