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 malfeasance domains #404

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 61 additions & 49 deletions release/go/spacemesh/v2alpha1/malfeasance.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions release/openapi/swagger/src/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,13 @@
"definitions": {
"MalfeasanceProofMalfeasanceDomain": {
"type": "string",
"title": "- DOMAIN_UNSPECIFIED: for legacy proofs",
"title": "- DOMAIN_UNSPECIFIED: for legacy proofs\n - DOMAIN_ACTIVATION: ATX related proofs\n - DOMAIN_BALLOT: Ballot related proofs\n - DOMAIN_HARE: Hare related proofs",
"default": "DOMAIN_UNSPECIFIED",
"enum": [
"DOMAIN_UNSPECIFIED"
"DOMAIN_UNSPECIFIED",
"DOMAIN_ACTIVATION",
"DOMAIN_BALLOT",
"DOMAIN_HARE"
]
},
"NodeStatusResponseSyncStatus": {
Expand Down Expand Up @@ -665,7 +668,7 @@
"format": "byte"
},
"type": {
"description": "for legacy proofs the types are\n 1 - Double publish of ATX\n 2 - Multiple ballots for a layer by same smesher\n 3 - Hare Equivocation (currently unused)\n 4 - ATX with invalid PoST proof publised\n 5 - ATX referencing an invalid previous ATX published",
"description": "for legacy proofs the types are\n 1 - Double publish of ATX\n 2 - Multiple ballots for a layer by same smesher\n 3 - Hare Equivocation (currently unused)\n 4 - ATX with invalid PoST proof published\n 5 - ATX referencing an invalid previous ATX published",
"type": "integer",
"format": "int64",
"title": "type of the malfeasance proof, depends on domain"
Expand Down
5 changes: 4 additions & 1 deletion spacemesh/v2alpha1/malfeasance.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ message MalfeasanceProof {

enum MalfeasanceDomain {
DOMAIN_UNSPECIFIED = 0; // for legacy proofs
DOMAIN_ACTIVATION = 1; // ATX related proofs
DOMAIN_BALLOT = 2; // Ballot related proofs
DOMAIN_HARE = 3; // Hare related proofs
}
MalfeasanceDomain domain = 2;

Expand All @@ -18,7 +21,7 @@ message MalfeasanceProof {
// 1 - Double publish of ATX
// 2 - Multiple ballots for a layer by same smesher
// 3 - Hare Equivocation (currently unused)
// 4 - ATX with invalid PoST proof publised
// 4 - ATX with invalid PoST proof published
// 5 - ATX referencing an invalid previous ATX published
uint32 type = 3;

Expand Down
Loading