Module challenge

Module challenge 

Source

Structs§

BlockDoubleSign
Double signed block.
Challenge
ChunkProofs
Invalid chunk (body of the chunk doesn’t match proofs or invalid encoding).
ChunkState
Doesn’t match post-{state root, outgoing receipts, gas used, etc} results after applying previous chunk.
SlashedValidator

Enums§

ChallengeBody
MaybeEncodedShardChunk
Either EncodedShardChunk or ShardChunk. Used for ChunkProofs. Decoded is used to avoid re-encoding an already decoded chunk to construct a challenge. Encoded is still needed in case a challenge challenges an invalid encoded chunk that can’t be decoded.
PartialState
TODO (#8984): consider supporting format containing trie values only for state part boundaries and storing state items for state part range.

Type Aliases§

Challenges
ChallengesResult
Result of checking challenge, contains which accounts to slash. If challenge is invalid this is sender, otherwise author of chunk (and possibly other participants that signed invalid blocks).
TrieValue
Serialized TrieNodeWithSize or state value.