in bft-lib/src/smr_context.rs [26:44]
fn compute(
&mut self,
// The state before executing the command.
base_state: &State,
// Command to execute.
command: Command,
// Time associated to this execution step, in agreement with
// other consensus nodes.
time: NodeTime,
// Suggest to reward the author of the previous block, if any.
previous_author: Option<Author>,
// Suggest to reward the voters of the previous block, if any.
previous_voters: Vec<Author>,
) -> Option<State>;
}
/// A commit certificate.
// TODO: more APIs
pub trait CommitCertificate<State> {