Documentation ¶
Index ¶
- type Committer
- type LedgerCommitter
- func (lc *LedgerCommitter) CommitLegacy(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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Committer ¶
type Committer interface { CommitLegacy(blockAndPvtData *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error GetPvtDataAndBlockByNum(seqNum uint64) (*ledger.BlockAndPvtData, error) GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error) LedgerHeight() (uint64, error) DoesPvtDataInfoExistInLedger(blockNum uint64) (bool, error) GetBlocks(blockSeqs []uint64) []*common.Block GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error) CommitPvtDataOfOldBlocks(blockPvtData []*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error) GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error) Close() }
type LedgerCommitter ¶
type LedgerCommitter struct {
PeerLedgerSupport
}
func NewLedgerCommitter ¶
func NewLedgerCommitter(ledger PeerLedgerSupport) *LedgerCommitter
func (*LedgerCommitter) CommitLegacy ¶
func (lc *LedgerCommitter) CommitLegacy(blockAndPvtData *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error
func (*LedgerCommitter) DoesPvtDataInfoExistInLedger ¶
func (lc *LedgerCommitter) DoesPvtDataInfoExistInLedger(blockNum uint64) (bool, error)
func (*LedgerCommitter) GetBlocks ¶
func (lc *LedgerCommitter) GetBlocks(blockSeqs []uint64) []*common.Block
func (*LedgerCommitter) GetPvtDataAndBlockByNum ¶
func (lc *LedgerCommitter) GetPvtDataAndBlockByNum(seqNum uint64) (*ledger.BlockAndPvtData, error)
func (*LedgerCommitter) LedgerHeight ¶
func (lc *LedgerCommitter) LedgerHeight() (uint64, error)
type PeerLedgerSupport ¶
type PeerLedgerSupport interface { GetPvtDataAndBlockByNum(blockNum uint64, filter ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error) GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error) CommitLegacy(blockAndPvtdata *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error CommitPvtDataOfOldBlocks(blockPvtData []*ledger.BlockPvtData) ([]*ledger.PvtdataHashMismatch, error) GetBlockchainInfo() (*common.BlockchainInfo, error) DoesPvtDataInfoExist(blockNum uint64) (bool, error) GetBlockByNumber(blockNumber uint64) (*common.Block, error) GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error) GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error) Close() }
Click to show internal directories.
Click to hide internal directories.