Struct diem_types::waypoint::Waypoint [−][src]
pub struct Waypoint { /* fields omitted */ }
Expand description
Waypoint keeps information about the LedgerInfo on a given version, which provides an off-chain mechanism to verify the sync process right after the restart. At high level, a trusted waypoint verifies the LedgerInfo for a certain epoch change. For more information, please refer to the Waypoints documentation.
Implementations
Generate a new waypoint given any LedgerInfo.
Generates a new waypoint given the epoch change LedgerInfo.
Errors in case the given ledger info does not match the waypoint.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
Verify if the ledger_info is trust worthy.
Returns true in case the given epoch is larger than the existing verifier can support. In this case the EpochChangeProof should be verified and the verifier updated. Read more
Returns true if the given LedgerInfo
is stale and probably in our
trusted prefix. Read more
Auto Trait Implementations
impl RefUnwindSafe for Waypoint
impl UnwindSafe for Waypoint
Blanket Implementations
Mutably borrows from an owned value. Read more
Generates a hash used only for tests.