pub struct EndBlockResponse {
pub validator_updates: Vec<ValidatorUpdate>,
pub events: Vec<Event>,
pub app_hash: BlockHash,
}Expand description
Response from Application::end_block().
If validator_updates is non-empty, an epoch transition is scheduled.
Fields§
§validator_updates: Vec<ValidatorUpdate>§events: Vec<Event>Application-defined events emitted during this block.
app_hash: BlockHashApplication state root after executing this block.
This hash is included in the next block’s header, forming a chain of state commitments that enables cross-node state divergence detection. Applications that do not track state roots can leave this as the default (all zeros).
Trait Implementations§
Source§impl Clone for EndBlockResponse
impl Clone for EndBlockResponse
Source§fn clone(&self) -> EndBlockResponse
fn clone(&self) -> EndBlockResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EndBlockResponse
impl Debug for EndBlockResponse
Source§impl Default for EndBlockResponse
impl Default for EndBlockResponse
Source§fn default() -> EndBlockResponse
fn default() -> EndBlockResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EndBlockResponse
impl<'de> Deserialize<'de> for EndBlockResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EndBlockResponse
impl RefUnwindSafe for EndBlockResponse
impl Send for EndBlockResponse
impl Sync for EndBlockResponse
impl Unpin for EndBlockResponse
impl UnsafeUnpin for EndBlockResponse
impl UnwindSafe for EndBlockResponse
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