Struct snarkos_node_bft::Sync
source · pub struct Sync<N: Network> { /* private fields */ }Implementations§
source§impl<N: Network> Sync<N>
impl<N: Network> Sync<N>
sourcepub async fn sync_storage_with_ledger_at_bootup(&self) -> Result<()>
pub async fn sync_storage_with_ledger_at_bootup(&self) -> Result<()>
Syncs the storage with the ledger at bootup.
sourcepub async fn sync_storage_with_blocks(&self) -> Result<()>
pub async fn sync_storage_with_blocks(&self) -> Result<()>
Syncs the storage with the given blocks.
sourcepub async fn sync_storage_with_block(&self, block: Block<N>) -> Result<()>
pub async fn sync_storage_with_block(&self, block: Block<N>) -> Result<()>
Syncs the storage with the given blocks.
source§impl<N: Network> Sync<N>
impl<N: Network> Sync<N>
sourcepub const fn is_gateway_mode(&self) -> bool
pub const fn is_gateway_mode(&self) -> bool
Returns true if the node is in gateway mode.
sourcepub fn get_block_locators(&self) -> Result<BlockLocators<N>>
pub fn get_block_locators(&self) -> Result<BlockLocators<N>>
Returns the current block locators of the node.
source§impl<N: Network> Sync<N>
impl<N: Network> Sync<N>
sourcepub async fn send_certificate_request(
&self,
peer_ip: SocketAddr,
certificate_id: Field<N>
) -> Result<BatchCertificate<N>>
pub async fn send_certificate_request( &self, peer_ip: SocketAddr, certificate_id: Field<N> ) -> Result<BatchCertificate<N>>
Sends a certificate request to the specified peer.
Trait Implementations§
Auto Trait Implementations§
impl<N> !RefUnwindSafe for Sync<N>
impl<N> Send for Sync<N>
impl<N> Sync for Sync<N>
impl<N> Unpin for Sync<N>where <N as Environment>::Field: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N> !UnwindSafe for Sync<N>
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