Versions in this module Expand all Collapse all v1 v1.4.11 Mar 2, 2021 Changes in this version + type Committer interface + Close func() + CommitPvtDataOfOldBlocks func(blockPvtData []*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error) + CommitWithPvtData func(blockAndPvtData *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error + DoesPvtDataInfoExistInLedger func(blockNum uint64) (bool, error) + GetBlocks func(blockSeqs []uint64) []*common.Block + GetConfigHistoryRetriever func() (ledger.ConfigHistoryRetriever, error) + GetMissingPvtDataTracker func() (ledger.MissingPvtDataTracker, error) + GetPvtDataAndBlockByNum func(seqNum uint64) (*ledger.BlockAndPvtData, error) + GetPvtDataByNum func(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error) + LedgerHeight func() (uint64, error) + type ConfigBlockEventer func(block *common.Block) error + type LedgerCommitter struct + func NewLedgerCommitter(ledger PeerLedgerSupport) *LedgerCommitter + func NewLedgerCommitterReactive(ledger PeerLedgerSupport, eventer ConfigBlockEventer) *LedgerCommitter + func (lc *LedgerCommitter) CommitWithPvtData(blockAndPvtData *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error + func (lc *LedgerCommitter) DoesPvtDataInfoExistInLedger(blockNum uint64) (bool, error) + func (lc *LedgerCommitter) GetBlocks(blockSeqs []uint64) []*common.Block + func (lc *LedgerCommitter) GetPvtDataAndBlockByNum(seqNum uint64) (*ledger.BlockAndPvtData, error) + func (lc *LedgerCommitter) LedgerHeight() (uint64, error) + type PeerLedgerSupport interface + Close func() + CommitPvtDataOfOldBlocks func(blockPvtData []*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error) + CommitWithPvtData func(blockAndPvtdata *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error + DoesPvtDataInfoExist func(blockNum uint64) (bool, error) + GetBlockByNumber func(blockNumber uint64) (*common.Block, error) + GetBlockchainInfo func() (*common.BlockchainInfo, error) + GetConfigHistoryRetriever func() (ledger.ConfigHistoryRetriever, error) + GetMissingPvtDataTracker func() (ledger.MissingPvtDataTracker, error) + GetPvtDataAndBlockByNum func(blockNum uint64, filter ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error) + GetPvtDataByNum func(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)