Function cuprate_blockchain::ops::output::output_to_output_on_chain
source · pub fn output_to_output_on_chain(
output: &Output,
amount: Amount,
table_tx_unlock_time: &impl DatabaseRo<TxUnlockTime>,
) -> Result<OutputOnChain, RuntimeError>Expand description
Map an Output to a cuprate_types::OutputOnChain.
§Errors
This function returns RuntimeError::KeyNotFound if the input (if applicable) doesn’t exist or other RuntimeError’s on database errors.