cuprate_blockchain::ops::output

Function get_num_outputs

Source
pub fn get_num_outputs(
    table_outputs: &impl DatabaseRo<Outputs>,
) -> DbResult<u64>
Expand description

How many pre-RCT Outputs are there?

This returns the amount of pre-RCT outputs currently stored.

§Errors

This function returns cuprate_database::RuntimeError::KeyNotFound if the input (if applicable) doesn’t exist or other RuntimeError’s on database errors.