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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=
.
Auto Trait Implementations
impl RefUnwindSafe for EpochChangeProof
impl Send for EpochChangeProof
impl Sync for EpochChangeProof
impl Unpin for EpochChangeProof
impl UnwindSafe for EpochChangeProof
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.