Module near_primitives::challenge[][src]

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.

PartialState
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.

Type Definitions

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).

StateItem

Serialized TrieNodeWithSize