Skip to content

Commit ca3459e

Browse files
authored
Merge pull request #79 from datachainlab/audit_S2
S2
2 parents 6dc5d3f + 44f4e0d commit ca3459e

File tree

5 files changed

+33
-30
lines changed

5 files changed

+33
-30
lines changed

SPEC.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ interface ETHHeader {
140140
}
141141
```
142142
143-
## Misbehavior
143+
## misbehaviour
144144
145145
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.
146146
@@ -244,15 +244,15 @@ Primary verification according to BEP-126's finality rule involves:
244244
However, there may be cases where the VoteAttestation cannot directly determine the finality of the submitted header.
245245
In such cases, a valid descendant header is verified, which is included in the `headers` and can directly confirm its finality through VoteAttestation.
246246
247-
## Misbehavior predicate
247+
## misbehaviour predicate
248248
249-
The predicate will check if a submission contains evidence of Misbehavior.
249+
The predicate will check if a submission contains evidence of misbehaviour.
250250
If there are two different valid headers for the same height, the client will be frozen, preventing any further state updates.
251251
252252
```typescript
253253
function submitMisbehaviour(
254254
clientId: ClientId,
255-
misbehaviour: Misbehavior
255+
misbehaviour: misbehaviour
256256
): ClientState {
257257
// assert heights are equal
258258
assert(misbehaviour.header1.getHeight() == misbehaviour.header2.getHeight())

0 commit comments

Comments
 (0)