Documentation ¶
Index ¶
- Constants
- Variables
- func ClearPreResetHeight(blockStorageDir string) error
- func LoadPreResetHeight(blockStorageDir string) (map[string]uint64, error)
- func NewProvider(conf *Conf, indexConfig *blkstorage.IndexConfig, ...) (blkstorage.BlockStoreProvider, error)
- func ResetBlockStore(blockStorageDir string) error
- func Rollback(blockStorageDir, ledgerID string, targetBlockNum uint64, ...) error
- func ValidateRollbackParams(blockStorageDir, ledgerID string, targetBlockNum uint64) error
- type Conf
- type FsBlockstoreProvider
- func (p *FsBlockstoreProvider) Close()
- func (p *FsBlockstoreProvider) CreateBlockStore(ledgerid string) (blkstorage.BlockStore, error)
- func (p *FsBlockstoreProvider) Exists(ledgerid string) (bool, error)
- func (p *FsBlockstoreProvider) List() ([]string, error)
- func (p *FsBlockstoreProvider) OpenBlockStore(ledgerid string) (blkstorage.BlockStore, error)
Constants ¶
View Source
const ( ChainsDir = "chains" IndexDir = "index" )
Variables ¶
View Source
var ErrUnexpectedEndOfBlockfile = errors.New("unexpected end of blockfile")
Functions ¶
func ClearPreResetHeight ¶
func LoadPreResetHeight ¶
func NewProvider ¶
func NewProvider(conf *Conf, indexConfig *blkstorage.IndexConfig, metricsProvider metrics.Provider) (blkstorage.BlockStoreProvider, error)
func ResetBlockStore ¶
func Rollback ¶
func Rollback(blockStorageDir, ledgerID string, targetBlockNum uint64, indexConfig *blkstorage.IndexConfig) error
func ValidateRollbackParams ¶
Types ¶
type FsBlockstoreProvider ¶
type FsBlockstoreProvider struct {
// contains filtered or unexported fields
}
func (*FsBlockstoreProvider) Close ¶
func (p *FsBlockstoreProvider) Close()
func (*FsBlockstoreProvider) CreateBlockStore ¶
func (p *FsBlockstoreProvider) CreateBlockStore(ledgerid string) (blkstorage.BlockStore, error)
func (*FsBlockstoreProvider) Exists ¶
func (p *FsBlockstoreProvider) Exists(ledgerid string) (bool, error)
func (*FsBlockstoreProvider) List ¶
func (p *FsBlockstoreProvider) List() ([]string, error)
func (*FsBlockstoreProvider) OpenBlockStore ¶
func (p *FsBlockstoreProvider) OpenBlockStore(ledgerid string) (blkstorage.BlockStore, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.