Skip to content

Commit

Permalink
Merge pull request #67 from datachainlab/S2
Browse files Browse the repository at this point in the history
S2
  • Loading branch information
yoshidan authored Nov 26, 2024
2 parents 3631d39 + f97baa3 commit a9432a2
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 30 deletions.
8 changes: 4 additions & 4 deletions SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ interface ETHHeader {
}
```
## Misbehavior
## misbehaviour
The `Misbehaviour` type is used for detecting misbehaviour and freezing the client - to prevent further packet flow - if applicable. Parlia client `Misbehaviour` consists of two headers at the same height both of which the light client would have considered valid.
Expand Down Expand Up @@ -244,15 +244,15 @@ Primary verification according to BEP-126's finality rule involves:
However, there may be cases where the VoteAttestation cannot directly determine the finality of the submitted header.
In such cases, a valid descendant header is verified, which is included in the `headers` and can directly confirm its finality through VoteAttestation.
## Misbehavior predicate
## misbehaviour predicate
The predicate will check if a submission contains evidence of Misbehavior.
The predicate will check if a submission contains evidence of misbehaviour.
If there are two different valid headers for the same height, the client will be frozen, preventing any further state updates.
```typescript
function submitMisbehaviour(
clientId: ClientId,
misbehaviour: Misbehavior
misbehaviour: misbehaviour
): ClientState {
// assert heights are equal
assert(misbehaviour.header1.getHeight() == misbehaviour.header2.getHeight())
Expand Down
Loading

0 comments on commit a9432a2

Please sign in to comment.