[−][src]Struct solana_archiver_lib::archiver::Archiver
Methods
impl Archiver
[src]
pub fn new(
ledger_path: &Path,
node: Node,
cluster_entrypoint: ContactInfo,
keypair: Arc<Keypair>,
storage_keypair: Arc<Keypair>,
client_commitment: CommitmentConfig
) -> Result<Self, ArchiverError>
[src]
ledger_path: &Path,
node: Node,
cluster_entrypoint: ContactInfo,
keypair: Arc<Keypair>,
storage_keypair: Arc<Keypair>,
client_commitment: CommitmentConfig
) -> Result<Self, ArchiverError>
Returns a Result that contains an archiver on success
Arguments
ledger_path
- path to where the ledger will be stored. Causes panic if nonenode
- The archiver nodecluster_entrypoint
- ContactInfo representing an entry into the networkkeypair
- Keypair for this archiver
pub fn close(self)
[src]
pub fn join(self)
[src]
pub fn download_from_archiver(
cluster_info: &Arc<RwLock<ClusterInfo>>,
archiver_info: &ContactInfo,
blockstore: &Arc<Blockstore>,
slots_per_segment: u64
) -> Result<u64, ArchiverError>
[src]
cluster_info: &Arc<RwLock<ClusterInfo>>,
archiver_info: &ContactInfo,
blockstore: &Arc<Blockstore>,
slots_per_segment: u64
) -> Result<u64, ArchiverError>
Ask an archiver to populate a given blockstore with its segment. Return the slot at the start of the archiver's segment
It is recommended to use a temporary blockstore for this since the download will not verify shreds received and might impact the chaining of shreds across slots
Auto Trait Implementations
impl !RefUnwindSafe for Archiver
impl Send for Archiver
impl Sync for Archiver
impl Unpin for Archiver
impl !UnwindSafe for Archiver
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,