From 52475b1684f94a3d5fc7876cdeeb9c017324e8b6 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Tue, 14 Aug 2018 11:31:39 +0200 Subject: [PATCH] Fix minor typos --- docs/spec/slashing/state-machine.md | 2 +- docs/spec/slashing/state.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/spec/slashing/state-machine.md b/docs/spec/slashing/state-machine.md index 77b41f9b5d..1105cededa 100644 --- a/docs/spec/slashing/state-machine.md +++ b/docs/spec/slashing/state-machine.md @@ -49,7 +49,7 @@ In this section we describe the "hooks" - slashing module code that runs when ot Upon successful bonding of a validator (a given validator changing from "unbonded" state to "bonded" state, which may happen on delegation, on unjailing, etc), we create a new `SlashingPeriod` structure for the -now-bonded validator, wich `StartHeight` of the current block, `EndHeight` of `0` (sentinel value for not-yet-ended), +now-bonded validator, which `StartHeight` of the current block, `EndHeight` of `0` (sentinel value for not-yet-ended), and `SlashedSoFar` of `0`: ```golang diff --git a/docs/spec/slashing/state.md b/docs/spec/slashing/state.md index 07bf3261cf..cf39a8493e 100644 --- a/docs/spec/slashing/state.md +++ b/docs/spec/slashing/state.md @@ -38,7 +38,7 @@ The information stored for tracking validator liveness is as follows: type ValidatorSigningInfo struct { StartHeight int64 // Height at which the validator became able to sign blocks IndexOffset int64 // Offset into the signed block bit array - JailedUntil int64 // Block height until which the validator is jailed, + JailedUntilHeight int64 // Block height until which the validator is jailed, // or sentinel value of 0 for not jailed SignedBlocksCounter int64 // Running counter of signed blocks } @@ -53,7 +53,7 @@ Where: ### Slashing Period -A slashing period is a start and end time associated with a particular validator, +A slashing period is a start and end block height associated with a particular validator, within which only the "worst infraction counts": the total amount of slashing for infractions committed within the period (and discovered whenever) is capped at the penalty for the worst offense. @@ -66,7 +66,7 @@ Slashing periods are indexed in the store as follows: - SlashingPeriod: ` 0x03 | ValTendermintAddr | StartHeight -> amino(slashingPeriod) ` -This allows us to look up slashing period by validator address, the only lookup necessary, +This allows us to look up slashing period by a validator's address, the only lookup necessary, and iterate over start height to efficiently retrieve the most recent slashing period(s) or those beginning after a given height.