pub struct NoopApplication;Expand description
No-op application stub
Trait Implementations§
Source§impl Application for NoopApplication
impl Application for NoopApplication
Source§fn on_commit(&self, _block: &Block) -> Result<()>
fn on_commit(&self, _block: &Block) -> Result<()>
Called when a block is committed to the chain.
Source§fn create_payload(&self) -> Vec<u8> ⓘ
fn create_payload(&self) -> Vec<u8> ⓘ
Create a payload for a new block proposal.
Typically pulls transactions from the mempool.
Source§fn validate_block(&self, _block: &Block) -> bool
fn validate_block(&self, _block: &Block) -> bool
Validate a proposed block before voting.
Source§fn validate_tx(&self, _tx: &[u8]) -> bool
fn validate_tx(&self, _tx: &[u8]) -> bool
Validate a single transaction for mempool admission.
Source§fn begin_block(&self, _height: Height, _view: ViewNumber) -> Result<()>
fn begin_block(&self, _height: Height, _view: ViewNumber) -> Result<()>
Called at the beginning of block execution.
Source§fn deliver_tx(&self, _tx: &[u8]) -> Result<()>
fn deliver_tx(&self, _tx: &[u8]) -> Result<()>
Called for each transaction in the block payload.
Auto Trait Implementations§
impl Freeze for NoopApplication
impl RefUnwindSafe for NoopApplication
impl Send for NoopApplication
impl Sync for NoopApplication
impl Unpin for NoopApplication
impl UnsafeUnpin for NoopApplication
impl UnwindSafe for NoopApplication
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more