pub enum ValidateBlockResponse {
Valid {
app_state_updates: Option<AppStateUpdates>,
validator_set_updates: Option<ValidatorSetUpdates>,
},
Invalid,
}
Expand description
Response from an App
upon receiving a ValidateBlockRequest
.
Variants§
Valid
Indicates that ValidateBlockRequest::proposed_block
is valid according to the App
’s semantics.
Fields
§
app_state_updates: Option<AppStateUpdates>
The AppStateUpdates
that the proposed block will cause when it is committed.
§
validator_set_updates: Option<ValidatorSetUpdates>
The ValidatorSetUpdates
that the proposed block will cause when it is committed.
Invalid
Indicates either that ValidateBlockRequest::proposed_block
is invalid according to the
App
’s semantics, or that the execution of validate_block
for the proposed block will exceed the
timing requirements.
Auto Trait Implementations§
impl Freeze for ValidateBlockResponse
impl RefUnwindSafe for ValidateBlockResponse
impl Send for ValidateBlockResponse
impl Sync for ValidateBlockResponse
impl Unpin for ValidateBlockResponse
impl UnwindSafe for ValidateBlockResponse
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