[][src]Struct solana_libra_types::proto::types::TransactionListWithProof

pub struct TransactionListWithProof {
    pub transactions: Vec<SignedTransaction>,
    pub infos: Vec<TransactionInfo>,
    pub events_for_versions: Option<EventsForVersions>,
    pub first_transaction_version: Option<u64>,
    pub proof_of_first_transaction: Option<AccumulatorProof>,
    pub proof_of_last_transaction: Option<AccumulatorProof>,
}

A list of consecutive transactions with proof. This is mainly used for state synchronization when a validator would request a list of transactions from a peer, verify the proof, execute the transactions and persist them. Note that the transactions are supposed to belong to the same epoch E, otherwise verification will fail.

Fields

transactions: Vec<SignedTransaction>

The list of transactions.

infos: Vec<TransactionInfo>

The list of corresponding TransactionInfo objects.

events_for_versions: Option<EventsForVersions>

The list of corresponding Event objects (only present if fetch_events was set to true in req)

first_transaction_version: Option<u64>

If the list is not empty, the version of the first transaction.

proof_of_first_transaction: Option<AccumulatorProof>

The proofs of the first and last transaction in this chunk. When this is used for state synchronization, the validator who requests the transactions will provide a version in the request and the proofs will be relative to the given version. When this is returned in GetTransactionsResponse, the proofs will be relative to the ledger info returned in UpdateToLatestLedgerResponse.

proof_of_last_transaction: Option<AccumulatorProof>

Trait Implementations

impl Clone for TransactionListWithProof[src]

impl Debug for TransactionListWithProof[src]

impl Default for TransactionListWithProof[src]

impl From<TransactionListWithProof> for TransactionListWithProof[src]

impl Message for TransactionListWithProof[src]

impl PartialEq<TransactionListWithProof> for TransactionListWithProof[src]

impl StructuralPartialEq for TransactionListWithProof[src]

impl TryFrom<TransactionListWithProof> for TransactionListWithProof[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

impl<T> InitializableFromZeroed for T where
    T: Default

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,