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§
Sourcefn get_outpoints(&self) -> Result<&BTreeMap<OutputId, ScanTarget>, Self::Error>
fn get_outpoints(&self) -> Result<&BTreeMap<OutputId, ScanTarget>, Self::Error>
Get wallet outpoint map
Sourcefn get_outpoints_mut(
&mut self,
) -> Result<&mut BTreeMap<OutputId, ScanTarget>, Self::Error>
fn get_outpoints_mut( &mut self, ) -> Result<&mut BTreeMap<OutputId, ScanTarget>, Self::Error>
Get mutable reference to wallet outpoint map
Provided Methods§
Sourcefn append_outpoints(
&mut self,
outpoints: &mut BTreeMap<OutputId, ScanTarget>,
) -> Result<(), Self::Error>
fn append_outpoints( &mut self, outpoints: &mut BTreeMap<OutputId, ScanTarget>, ) -> Result<(), Self::Error>
Append outpoints to wallet outpoint map
Sourcefn truncate_outpoints(
&mut self,
truncate_height: BlockHeight,
) -> Result<(), Self::Error>
fn truncate_outpoints( &mut self, truncate_height: BlockHeight, ) -> Result<(), Self::Error>
Removes all mapped outpoints above the given block_height.