package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev

# Packages

# Functions

ClearPreResetHeight deletes the files that contain the last recorded reset heights for the specified ledgers.
DeleteBlockStoreIndex deletes block store index file.
LoadPreResetHeight searches the preResetHeight files for the specified ledgers and returns a map of channelname to the last recorded block height during one of the reset operations.
NewConf constructs new `Conf`.
NewProvider constructs a filesystem based block store provider.
ResetBlockStore drops the block storage index and truncates the blocks files for all channels/ledgers to genesis blocks.
Rollback reverts changes made to the block store beyond a given block number.
ValidateRollbackParams performs necessary validation on the input given for the rollback operation.

# Constants

ChainsDir is the name of the directory containing the channel ledgers.
constants for indexable attributes.
constants for indexable attributes.
constants for indexable attributes.
constants for indexable attributes.
IndexDir is the name of the directory containing all block indexes across ledgers.

# Variables

ErrUnexpectedEndOfBlockfile error used to indicate an unexpected end of a file segment this can happen mainly if a crash occurs during appending a block and partial block contents get written towards the end of the file.

# Structs

BlockStore - filesystem based implementation for `BlockStore`.
BlockStoreProvider provides handle to block storage - this is not thread-safe.
Conf encapsulates all the configurations for `BlockStore`.
IndexConfig - a configuration that includes a list of attributes that should be indexed.
SnapshotInfo captures some of the details about the snapshot.

# Type aliases

IndexableAttr represents an indexable attribute.