Keeta LogoKeeta Logo@keetanetwork/keetanet-client
    Preparing search index...

    Type Alias VoteStapleOptions

    type VoteStapleOptions = {
        trustedValues?: {
            blocks?: Block[];
            blocksMap?: { [blockHashHex: string]: Block };
            touchedAccounts?: InstanceType<typeof Set>;
            votes?: Vote[];
        };
    }
    Index

    Properties

    Properties

    trustedValues?: {
        blocks?: Block[];
        blocksMap?: { [blockHashHex: string]: Block };
        touchedAccounts?: InstanceType<typeof Set>;
        votes?: Vote[];
    }

    Optional pre-computed and trusted values to avoid re-validation

    Only supply these values if you are 100% certain that they are correct, otherwise the VoteStaple may be corrupt and lead to invalid behavior.

    Type declaration

    • Optionalblocks?: Block[]

      Pre-populate the list of blocks

    • OptionalblocksMap?: { [blockHashHex: string]: Block }

      Pre-populated mapping of BlockHashes to Blocks

    • OptionaltouchedAccounts?: InstanceType<typeof Set>

      Pre-populate the set of accounts touched by this vote staple

    • Optionalvotes?: Vote[]

      Pre-populate the list of votes