Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add check_double_prevote and check_double_precommit in vetomint module #508

Conversation

Jeongseup
Copy link
Contributor

This is implement for the issue (#473) and will be merged in other PR (#495) for fully implement other functions to check misbehaviors

let byzantine_validator = vote.signer;
let double_proposal = vote.proposal;

return vec![ConsensusResponse::ViolationReport {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why early return? What if there are multiple double votes?

@Jeongseup Jeongseup force-pushed the vetomint/add-function-for-checking-double-votes branch from 31b7f14 to 54c808a Compare August 27, 2023 16:22
@Jeongseup Jeongseup force-pushed the vetomint/add-function-for-checking-double-votes branch from 54c808a to 14f9c79 Compare August 27, 2023 16:41
@junha1 junha1 merged commit 453c87d into postech-dao:main Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants