pub trait BitcoinBlockImport:
Send
+ Sync
+ 'static {
// Required method
fn import_block<'life0, 'async_trait>(
&'life0 mut self,
block: BitcoinBlock,
origin: BlockOrigin,
) -> Pin<Box<dyn Future<Output = Result<ImportStatus, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A trait for importing Bitcoin blocks.
Required Methods§
sourcefn import_block<'life0, 'async_trait>(
&'life0 mut self,
block: BitcoinBlock,
origin: BlockOrigin,
) -> Pin<Box<dyn Future<Output = Result<ImportStatus, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn import_block<'life0, 'async_trait>(
&'life0 mut self,
block: BitcoinBlock,
origin: BlockOrigin,
) -> Pin<Box<dyn Future<Output = Result<ImportStatus, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Import a Bitcoin block.