cuprate_blockchain::ops::output

Function get_num_outputs

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

How many pre-RCT Outputs are there?

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

§Errors

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