[][src]Struct solana::replicator::Replicator

pub struct Replicator { /* fields omitted */ }

Methods

impl Replicator[src]

pub fn new(
    ledger_path: &str,
    node: Node,
    cluster_entrypoint: ContactInfo,
    keypair: Arc<Keypair>,
    storage_keypair: Arc<Keypair>
) -> Result<Self>
[src]

Returns a Result that contains a replicator on success

Arguments

  • ledger_path - path to where the ledger will be stored. Causes panic if none
  • node - The replicator node
  • cluster_entrypoint - ContactInfo representing an entry into the network
  • keypair - Keypair for this replicator

pub fn close(self)[src]

pub fn join(self)[src]

pub fn download_from_replicator(
    cluster_info: &Arc<RwLock<ClusterInfo>>,
    replicator_info: &ContactInfo,
    blocktree: &Arc<Blocktree>,
    slots_per_segment: u64
) -> Result<u64>
[src]

Ask a replicator to populate a given blocktree with its segment. Return the slot at the start of the replicator's segment

It is recommended to use a temporary blocktree for this since the download will not verify blobs received and might impact the chaining of blobs across slots

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err