Trait themelio_nodeprot::NodeServer[][src]

pub trait NodeServer: Send + Sync {
    fn send_tx(&self, state: NetState, tx: Transaction) -> Result<()>;
fn get_abbr_block(&self, height: u64) -> Result<(AbbrBlock, ConsensusProof)>;
fn get_summary(&self) -> Result<StateSummary>;
fn get_state(&self, height: u64) -> Result<SealedState>;
fn get_smt_branch(
        &self,
        height: u64,
        elem: Substate,
        key: HashVal
    ) -> Result<(Vec<u8>, CompressedProof)>;
fn get_stakers_raw(&self, height: u64) -> Result<BTreeMap<HashVal, Vec<u8>>>; }
Expand description

This trait represents a server of Themelio’s node protocol. Actual nodes should implement this.

Required methods

Broadcasts a transaction to the network

Gets an “abbreviated block”

Gets a state summary

Gets a full state

Gets an SMT branch

Gets stakers

Implementors