Skip to content

Commit

Permalink
Update 06_begin_block.md (#10806)
Browse files Browse the repository at this point in the history
SDK to Cosmos SDK

Co-authored-by: Marko <[email protected]>
  • Loading branch information
Barrie Byron and tac0turtle authored Dec 18, 2021
1 parent e44612f commit 7b55c6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/evidence/spec/06_begin_block.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ Tendermint blocks can include

### Equivocation

Currently, the SDK handles two types of evidence inside the ABCI `BeginBlock`:
The Cosmos SDK handles two types of evidence inside the ABCI `BeginBlock`:

- `DuplicateVoteEvidence`,
- `LightClientAttackEvidence`.

The evidence module handles these two evidence types the same way. First, the SDK converts the Tendermint concrete evidence type to a SDK `Evidence` interface using `Equivocation` as the concrete type.
The evidence module handles these two evidence types the same way. First, the Cosmos SDK converts the Tendermint concrete evidence type to an SDK `Evidence` interface using `Equivocation` as the concrete type.

```proto
// Equivocation implements the Evidence interface.
Expand Down Expand Up @@ -149,6 +149,6 @@ func (k Keeper) HandleEquivocationEvidence(ctx sdk.Context, evidence *types.Equi
}
```

Note, the slashing, jailing, and tombstoning calls are delegated through the `x/slashing` module
**Note:** The slashing, jailing, and tombstoning calls are delegated through the `x/slashing` module
that emits informative events and finally delegates calls to the `x/staking` module. See documentation
on slashing and jailing in [x/staking spec](/.././cosmos-sdk/x/staking/spec/02_state_transitions.md).
on slashing and jailing in [State Transitions](/.././cosmos-sdk/x/staking/spec/02_state_transitions.md).

0 comments on commit 7b55c6d

Please sign in to comment.