MCPcopy
hub / github.com/hyperledger/fabric / PeerLedgerSupport

Interface PeerLedgerSupport

core/committer/committer_impl.go:24–44  ·  view source on GitHub ↗

--------!!!IMPORTANT!!-!!IMPORTANT!!-!!IMPORTANT!!--------- This is used merely to complete the loop for the "skeleton" path so we can reason about and modify committer component more effectively using code. PeerLedgerSupport abstract out the API's of ledger.PeerLedger interface required to impleme

Source from the content-addressed store, hash-verified

22// PeerLedgerSupport abstract out the API's of ledger.PeerLedger interface
23// required to implement LedgerCommitter
24type PeerLedgerSupport interface {
25 GetPvtDataAndBlockByNum(blockNum uint64, filter ledger.PvtNsCollFilter) (*ledger.BlockAndPvtData, error)
26
27 GetPvtDataByNum(blockNum uint64, filter ledger.PvtNsCollFilter) ([]*ledger.TxPvtData, error)
28
29 CommitLegacy(blockAndPvtdata *ledger.BlockAndPvtData, commitOpts *ledger.CommitOptions) error
30
31 CommitPvtDataOfOldBlocks(reconciledPvtdata []*ledger.ReconciledPvtdata, unreconciled ledger.MissingPvtDataInfo) ([]*ledger.PvtdataHashMismatch, error)
32
33 GetBlockchainInfo() (*common.BlockchainInfo, error)
34
35 DoesPvtDataInfoExist(blockNum uint64) (bool, error)
36
37 GetBlockByNumber(blockNumber uint64) (*common.Block, error)
38
39 GetConfigHistoryRetriever() (ledger.ConfigHistoryRetriever, error)
40
41 GetMissingPvtDataTracker() (ledger.MissingPvtDataTracker, error)
42
43 Close()
44}
45
46// LedgerCommitter is the implementation of Committer interface
47// it keeps the reference to the ledger to commit blocks and retrieve

Callers 19

CommitLegacyMethod · 0.65
LedgerHeightMethod · 0.65
GetCurrentBlockHashMethod · 0.65
testValidationWithNTXesFunction · 0.65
putCCInfoWithVSCCAndVerFunction · 0.65
putSBEPFunction · 0.65
ConfigBlockFromLedgerFunction · 0.65
GetBlocksMethod · 0.65

Implementers 7

mockLedgercore/committer/committer_test.go
mockLedgercore/committer/txvalidator/v14/validat
PeerLedgercore/peer/mock/peer_ledger.go
PeerLedgercore/chaincode/mock/peer_ledger.go
kvLedgercore/ledger/kvledger/kv_ledger.go
ramLedgergossip/state/state_test.go
PeerLedgerinternal/peer/node/mock/peer_ledger.go

Calls

no outgoing calls

Tested by

no test coverage detected