pub fn id_to_output_on_chain(
id: &PreRctOutputId,
tables: &impl Tables,
) -> DbResult<OutputOnChain>
Expand description
Map an PreRctOutputId
to an OutputOnChain
.
Note that this still support RCT outputs, in that case, PreRctOutputId::amount
should be 0
.
§Errors
This function returns cuprate_database::RuntimeError::KeyNotFound
if the input (if applicable) doesn’t exist or other RuntimeError
’s on database errors.