Type Definition themelio_stf::StakeMapping[][src]

type StakeMapping = SmtMapping<TxHash, StakeDoc>;
Expand description

A stake mapping

Implementations

impl StakeMapping[src]

pub fn vote_power(&self, epoch: u64, pubkey: Ed25519PK) -> f64[src]

Gets the voting power, as a floating-point number, for a given public key and a given epoch.

pub fn remove_stale(&mut self, epoch: u64)[src]

Filter out all the elements that no longer matter.