Struct diem_types::epoch_change::EpochChangeProof[][src]

pub struct EpochChangeProof {
    pub ledger_info_with_sigs: Vec<LedgerInfoWithSignatures>,
    pub more: bool,
}
Expand description

A vector of LedgerInfo with contiguous increasing epoch numbers to prove a sequence of epoch changes from the first LedgerInfo’s epoch.

Fields

ledger_info_with_sigs: Vec<LedgerInfoWithSignatures>more: bool

Implementations

The first/lowest epoch of the proof to indicate which epoch this proof is helping with

Verify the proof is correctly chained with known epoch and validator verifier and return the LedgerInfoWithSignatures to start target epoch.

In case a waypoint is present, it’s going to be used for verifying the very first epoch change (it’s the responsibility of the caller to not pass a waypoint in case it’s not needed).

We will also skip any stale ledger info’s in the EpochChangeProof.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Generates a hash used only for tests.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.