Struct floresta_wire::node::UtreexoNode
source · pub struct UtreexoNode<Context, Chain: BlockchainInterface + UpdatableChainstate>(/* private fields */);
Implementations§
source§impl<Chain> UtreexoNode<ChainSelector, Chain>where
WireError: From<<Chain as BlockchainInterface>::Error>,
Chain: BlockchainInterface + UpdatableChainstate + 'static,
impl<Chain> UtreexoNode<ChainSelector, Chain>where WireError: From<<Chain as BlockchainInterface>::Error>, Chain: BlockchainInterface + UpdatableChainstate + 'static,
source§impl<T, Chain> UtreexoNode<T, Chain>where
T: 'static + Default + NodeContext,
WireError: From<<Chain as BlockchainInterface>::Error>,
Chain: BlockchainInterface + UpdatableChainstate + 'static,
impl<T, Chain> UtreexoNode<T, Chain>where T: 'static + Default + NodeContext, WireError: From<<Chain as BlockchainInterface>::Error>, Chain: BlockchainInterface + UpdatableChainstate + 'static,
pub fn new( config: UtreexoNodeConfig, chain: Chain, mempool: Arc<RwLock<Mempool>>, block_filters: Option<Arc<NetworkFilters<FlatFiltersStore>>> ) -> Self
source§impl<Chain> UtreexoNode<RunningNode, Chain>where
WireError: From<<Chain as BlockchainInterface>::Error>,
Chain: BlockchainInterface + UpdatableChainstate + 'static,
impl<Chain> UtreexoNode<RunningNode, Chain>where WireError: From<<Chain as BlockchainInterface>::Error>, Chain: BlockchainInterface + UpdatableChainstate + 'static,
sourcepub fn get_handle(&self) -> Arc<NodeInterface>
pub fn get_handle(&self) -> Arc<NodeInterface>
Returns a handle to the node interface that we can use to request data from our node. This struct is thread safe, so we can use it from multiple threads and have multiple handles. It also doesn’t require a mutable reference to the node, or any synchronization mechanism.
pub async fn catch_up(self, kill_signal: Arc<RwLock<bool>>) -> Self
pub async fn run(self, kill_signal: Arc<RwLock<bool>>, stop_signal: Sender<()>)
source§impl<Chain> UtreexoNode<SyncNode, Chain>where
WireError: From<<Chain as BlockchainInterface>::Error>,
Chain: BlockchainInterface + UpdatableChainstate + 'static,
impl<Chain> UtreexoNode<SyncNode, Chain>where WireError: From<<Chain as BlockchainInterface>::Error>, Chain: BlockchainInterface + UpdatableChainstate + 'static,
Trait Implementations§
source§impl<Chain: BlockchainInterface + UpdatableChainstate, T> Deref for UtreexoNode<T, Chain>
impl<Chain: BlockchainInterface + UpdatableChainstate, T> Deref for UtreexoNode<T, Chain>
source§impl<T, Chain: BlockchainInterface + UpdatableChainstate> DerefMut for UtreexoNode<T, Chain>
impl<T, Chain: BlockchainInterface + UpdatableChainstate> DerefMut for UtreexoNode<T, Chain>
Auto Trait Implementations§
impl<Context, Chain> !RefUnwindSafe for UtreexoNode<Context, Chain>
impl<Context, Chain> Send for UtreexoNode<Context, Chain>where Chain: Send, Context: Send,
impl<Context, Chain> Sync for UtreexoNode<Context, Chain>where Chain: Sync, Context: Sync,
impl<Context, Chain> Unpin for UtreexoNode<Context, Chain>where Chain: Unpin, Context: Unpin,
impl<Context, Chain> !UnwindSafe for UtreexoNode<Context, Chain>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more