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

S2 #79

Merged
merged 1 commit into from
Nov 27, 2024
Merged

S2 #79

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
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
Loading