Skip to content

Commit

Permalink
Merge pull request #404 from spacemeshos/add-malfeasance-domains
Browse files Browse the repository at this point in the history
Add malfeasance domains
  • Loading branch information
fasmat authored Dec 18, 2024
2 parents 8aac5ae + 2e58294 commit 18bd7bb
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 53 deletions.
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 @@ -469,10 +469,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 @@ -707,7 +710,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

0 comments on commit 18bd7bb

Please sign in to comment.