pub trait TrustStore {
    fn set(&self, netid: NetID, trusted: TrustedHeight);
fn get(&self, netid: NetID) -> Option<TrustedHeight>; }
Expand description

Standard interface for persisting a trusted block.

Required methods

Set a trusted block in persistent storage, overriding the current value only if this one has a higher block height.

Get the latest trusted block from persistent storage if one exists.

Implementors