pub trait NodeMethods {
    // Required methods
    fn get_block(&self, block: BlockHash) -> Result<Option<Block>, RecvError>;
    fn get_utreexo_block(
        &self,
        block: BlockHash
    ) -> Result<Option<UtreexoBlock>, RecvError>;
    fn get_mempool_transaction(
        &self,
        txid: Txid
    ) -> Result<Option<Transaction>, RecvError>;
    fn get_peer_info(&self) -> Result<Vec<PeerInfo>, RecvError>;
    fn connect(&self, addr: IpAddr, port: u16) -> Result<bool, RecvError>;
}

Required Methods§

Implementors§