[−][src]Struct solana::replicator::Replicator
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]
ledger_path: &str,
node: Node,
cluster_entrypoint: ContactInfo,
keypair: Arc<Keypair>,
storage_keypair: Arc<Keypair>
) -> Result<Self>
Returns a Result that contains a replicator on success
Arguments
ledger_path- path to where the ledger will be stored. Causes panic if nonenode- The replicator nodecluster_entrypoint- ContactInfo representing an entry into the networkkeypair- 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]
cluster_info: &Arc<RwLock<ClusterInfo>>,
replicator_info: &ContactInfo,
blocktree: &Arc<Blocktree>,
slots_per_segment: u64
) -> Result<u64>
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
impl Unpin for Replicator
impl Send for Replicator
impl Sync for Replicator
impl !RefUnwindSafe for Replicator
impl !UnwindSafe for Replicator
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,