Documentation ¶
Index ¶
- func LoadPreResetHeight(blockstorePath string) (map[string]uint64, error)
- func ResetBlockStore(blockstorePath string) error
- func Rollback(blockstorePath, ledgerID string, blockNum uint64) error
- func ValidateRollbackParams(blockstorePath, ledgerID string, blockNum uint64) error
- type Provider
- type Store
- func (s *Store) CommitPvtDataOfOldBlocks(blocksPvtData map[uint64][]*ledger.TxPvtData) error
- func (s *Store) CommitWithPvtData(blockAndPvtdata *ledger.BlockAndPvtData) error
- func (s *Store) DoesPvtDataInfoExist(blockNum uint64) (bool, error)
- func (s *Store) GetLastUpdatedOldBlocksPvtData() (map[uint64][]*ledger.TxPvtData, error)
- func (s *Store) GetMissingPvtDataInfoForMostRecentBlocks(maxBlock int) (ledger.MissingPvtDataInfo, error)
- func (s *Store) GetPvtDataAndBlockByNum(blockNum uint64, filter ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error)
- func (s *Store) GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)
- func (s *Store) Init(btlPolicy pvtdatapolicy.BTLPolicy)
- func (s *Store) IsPvtStoreAheadOfBlockStore() bool
- func (s *Store) ProcessCollsEligibilityEnabled(committingBlk uint64, nsCollMap map[string][]string) error
- func (s *Store) ResetLastUpdatedOldBlocksList() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResetBlockStore ¶
func ValidateRollbackParams ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func NewProvider(blockStoreDir string, conf *pvtdatastorage.PrivateDataConfig, metricsProvider metrics.Provider) (*Provider, error)
type Store ¶
type Store struct { blkstorage.BlockStore // contains filtered or unexported fields }
func (*Store) CommitPvtDataOfOldBlocks ¶
func (*Store) CommitWithPvtData ¶
func (s *Store) CommitWithPvtData(blockAndPvtdata *ledger.BlockAndPvtData) error
func (*Store) DoesPvtDataInfoExist ¶
func (*Store) GetLastUpdatedOldBlocksPvtData ¶
func (*Store) GetMissingPvtDataInfoForMostRecentBlocks ¶
func (s *Store) GetMissingPvtDataInfoForMostRecentBlocks(maxBlock int) (ledger.MissingPvtDataInfo, error)
func (*Store) GetPvtDataAndBlockByNum ¶
func (s *Store) GetPvtDataAndBlockByNum(blockNum uint64, filter ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error)
func (*Store) GetPvtDataByNum ¶
func (*Store) Init ¶
func (s *Store) Init(btlPolicy pvtdatapolicy.BTLPolicy)
func (*Store) IsPvtStoreAheadOfBlockStore ¶
func (*Store) ProcessCollsEligibilityEnabled ¶
func (*Store) ResetLastUpdatedOldBlocksList ¶
Click to show internal directories.
Click to hide internal directories.