package
2.0.0-beta+incompatible
Repository: https://github.com/ibm/fabric.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# 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.
# Variables
ErrUnexpectedEndOfBlockfile error used to indicate an unexpected end of a file segment this can happen mainly if a crash occurs during appening a block and partial block contents get written towards the end of the file.
# Structs
Conf encapsulates all the configurations for `FsBlockStore`.
FsBlockstoreProvider provides handle to block storage - this is not thread-safe.