Used to get the checkpointed state.

interface Checkpointer {
    checkpointBlock(blockNumber: bigint): Promise<void>;
    checkpointChaincodeEvent(event: ChaincodeEvent): Promise<void>;
    checkpointTransaction(blockNumber: bigint, transactionId: string): Promise<void>;
    getBlockNumber(): undefined | bigint;
    getTransactionId(): undefined | string;
}

Hierarchy (view full)

Methods

  • To checkpoint block.

    Parameters

    • blockNumber: bigint

    Returns Promise<void>

  • To checkpoint transaction within the current block.

    Parameters

    • blockNumber: bigint
    • transactionId: string

    Returns Promise<void>