--------!!!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
| 22 | // PeerLedgerSupport abstract out the API's of ledger.PeerLedger interface |
| 23 | // required to implement LedgerCommitter |
| 24 | type 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 |
no outgoing calls
no test coverage detected