Skip to content

Commit

Permalink
address discrepancies between spec and implementation (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmwaters committed Jul 16, 2021
1 parent f790b6f commit 24f22ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 8 additions & 0 deletions spec/light-client/detection/detection_003_reviewed.md
Expand Up @@ -457,6 +457,10 @@ we refer to a variable of the following type
type LightClientAttackEvidence struct {
ConflictingBlock LightBlock
CommonHeight int64
// Evidence also includes application specific data which is not
// part of verification but is sent to the application once the
// evidence gets committed on chain.
}
```

Expand Down Expand Up @@ -698,6 +702,10 @@ func CreateEvidenceForPeer(peer PeerID, root LightBlock, trace LightStore)
// we can create evidence for submission to the secondary
ev := new InternalEvidence;
ev.Evidence.ConflictingBlock := trace[i];
// CommonHeight is used to indicate the type of attack
// if the CommonHeight != ConflictingBlock.Height this
// is by definition a lunatic attack else it is an
// equivocation attack
ev.Evidence.CommonHeight := common.Height;
ev.Peer := peer
return (ev, common, auxLS, FoundEvidence)
Expand Down
2 changes: 0 additions & 2 deletions spec/light-client/verification/verification_001_published.md
Expand Up @@ -472,8 +472,6 @@ type LightBlock struct {
Header Header
Commit Commit
Validators ValidatorSet
NextValidators ValidatorSet
Provider PeerID
}
```

Expand Down
2 changes: 0 additions & 2 deletions spec/light-client/verification/verification_002_draft.md
Expand Up @@ -486,8 +486,6 @@ type LightBlock struct {
Header Header
Commit Commit
Validators ValidatorSet
NextValidators ValidatorSet
Provider PeerID
}
```

Expand Down

0 comments on commit 24f22ee

Please sign in to comment.