Skip to content

[consensus] Block Proposers that Send Invalid Blocks #1524

@patrick-ogrady

Description

@patrick-ogrady

If the application returns that a block is actively invalid, we should block the proposer:

verified = verify_wait => {
// Clear verify waiter
let context = pending_verify_context.take().unwrap();
pending_verify = None;
// Try to use result
match verified {
Ok(verified) => {
if !verified {
debug!(view = context.view, "proposal failed verification");
continue;
}
},
Err(err) => {
debug!(?err, view = context.view, "failed to verify proposal");
continue;
}
};
// Handle verified proposal
view = context.view;
if !self.verified(view).await {
continue;
}
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Backlog

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions