diff --git a/binaries/cuprated/src/rpc/handlers/json_rpc.rs b/binaries/cuprated/src/rpc/handlers/json_rpc.rs index 4f7f00c..1ca244a 100644 --- a/binaries/cuprated/src/rpc/handlers/json_rpc.rs +++ b/binaries/cuprated/src/rpc/handlers/json_rpc.rs @@ -493,11 +493,7 @@ async fn get_info( let (database_size, free_space) = blockchain::database_size(&mut state.blockchain_read).await?; let (database_size, free_space) = if restricted { // - const fn round_up(value: u64, quantum: u64) -> u64 { - value.div_ceil(quantum) - } - - let database_size = round_up(database_size, 5 * 1024 * 1024 * 1024); + let database_size = database_size.div_ceil(5 * 1024 * 1024 * 1024); (database_size, u64::MAX) } else { (database_size, free_space)