pub fn id_to_output_on_chain(
id: &PreRctOutputId,
tables: &impl Tables,
) -> Result<OutputOnChain, RuntimeError>
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 RuntimeError::KeyNotFound
if the input (if applicable) doesn’t exist or other RuntimeError
’s on database errors.