Class: BaseCheckpointer

fabric-network. BaseCheckpointer

Base checkpointer providing an interface for checkpointers

new BaseCheckpointer(options)

The constructor
Parameters:
Name Type Description
options Object The options to configure the checkpointer

Methods


<async> load()

Loads the latest checkpoint
Returns:
Object parameter has key blockNumber: string and value module:fabric-network.BaseCheckpointer~Checkpoint
Type
module:fabric-network.BaseCheckpointer~Checkpoint | Object

<async> loadLatestCheckpoint()

Loads the earliest incomplete checkpoint to decide which block to replay from
Returns:
Type
module:fabric-network.BaseCheckpointer~Checkpoint

<async> save(transactionId, blockNumber, expectedTotal)

Updates the storage mechanism
Parameters:
Name Type Description
transactionId String the transaction ID
blockNumber Number the block number
expectedTotal Number the number of events expected in this block

setChaincodeId(chaincodeId)

Sets the chaincode ID to group together listeners
Parameters:
Name Type Description
chaincodeId String the chaincodeId

Type Definitions


Checkpoint

Type:
  • Object
Properties:
Name Type Argument Description
blockNumber number
transactionIds Array.<string>
expectedTotal number <optional>
The expected number of events in the block