Module unc_primitives::challenge
source · Structs§
- Double signed block.
- Invalid chunk (body of the chunk doesn’t match proofs or invalid encoding).
- Doesn’t match post-{state root, outgoing receipts, gas used, etc} results after applying previous chunk.
Enums§
- Either
EncodedShardChunkorShardChunk. Used forChunkProofs.Decodedis used to avoid re-encoding an already decoded chunk to construct a challenge.Encodedis still needed in case a challenge challenges an invalid encoded chunk that can’t be decoded. - TODO (#8984): consider supporting format containing trie values only for state part boundaries and storing state items for state part range.
Type Aliases§
- 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).
- Serialized TrieNodeWithSize or state value.