SyncOutPoints

Trait SyncOutPoints 

Source
pub trait SyncOutPoints: SyncWallet {
    // Required methods
    fn get_outpoints(
        &self,
    ) -> Result<&BTreeMap<OutputId, ScanTarget>, Self::Error>;
    fn get_outpoints_mut(
        &mut self,
    ) -> Result<&mut BTreeMap<OutputId, ScanTarget>, Self::Error>;

    // Provided methods
    fn append_outpoints(
        &mut self,
        outpoints: &mut BTreeMap<OutputId, ScanTarget>,
    ) -> Result<(), Self::Error> { ... }
    fn truncate_outpoints(
        &mut self,
        truncate_height: BlockHeight,
    ) -> Result<(), Self::Error> { ... }
}
Expand description

Trait for interfacing outpoints with wallet data

Required Methods§

Source

fn get_outpoints(&self) -> Result<&BTreeMap<OutputId, ScanTarget>, Self::Error>

Get wallet outpoint map

Source

fn get_outpoints_mut( &mut self, ) -> Result<&mut BTreeMap<OutputId, ScanTarget>, Self::Error>

Get mutable reference to wallet outpoint map

Provided Methods§

Source

fn append_outpoints( &mut self, outpoints: &mut BTreeMap<OutputId, ScanTarget>, ) -> Result<(), Self::Error>

Append outpoints to wallet outpoint map

Source

fn truncate_outpoints( &mut self, truncate_height: BlockHeight, ) -> Result<(), Self::Error>

Removes all mapped outpoints above the given block_height.

Implementors§