EvidenceParams determine how we handle evidence of malfeasance.

interface EvidenceParams {
    maxAgeDuration: undefined | Duration;
    maxAgeNumBlocks: bigint;
    maxBytes: bigint;
}

Properties

maxAgeDuration: undefined | Duration

Max age of evidence, in time.

It should correspond with an app's "unbonding period" or other similar mechanism for handling Nothing-At-Stake attacks.

maxAgeNumBlocks: bigint

Max age of evidence, in blocks.

The basic formula for calculating this is: MaxAgeDuration / {average block time}.

maxBytes: bigint

This sets the maximum size of total evidence in bytes that can be committed in a single block. and should fall comfortably under the max block bytes. Default is 1048576 or 1MB