//! Constants for RPC methods and server responses. use jsonrpc_core::ErrorCode; /// The RPC error code used by `zcashd` for incorrect RPC parameters. /// /// [`jsonrpc_core`] uses these codes: /// /// /// `node-stratum-pool` mining pool library expects error code `-1` to detect available RPC methods: /// pub const INVALID_PARAMETERS_ERROR_CODE: ErrorCode = ErrorCode::ServerError(-1); /// The RPC error code used by `zcashd` for missing blocks. /// /// `lightwalletd` expects error code `-8` when a block is not found: /// pub const MISSING_BLOCK_ERROR_CODE: ErrorCode = ErrorCode::ServerError(-8); /// When logging parameter data, only log this much data. pub const MAX_PARAMS_LOG_LENGTH: usize = 100;