consensus_coreTrait BlockAPI
Source pub trait BlockAPI {
// Required methods
fn epoch(&self) -> Epoch;
fn round(&self) -> Round;
fn author(&self) -> AuthorityIndex;
fn slot(&self) -> Slot;
fn timestamp_ms(&self) -> BlockTimestampMs;
fn ancestors(&self) -> &[BlockRef];
fn transactions(&self) -> &[Transaction];
fn transactions_data(&self) -> Vec<&[u8]>;
fn commit_votes(&self) -> &[CommitRef];
fn transaction_votes(&self) -> &[BlockTransactionVotes];
fn misbehavior_reports(&self) -> &[MisbehaviorReport];
}