Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
type Ledger interface { CommitNotificationsChannel(done <-chan struct{}) (<-chan *peerledger.CommitNotification, error) GetBlockByTxID(txID string) (*common.Block, error) GetBlockchainInfo() (*common.BlockchainInfo, error) GetBlocksIterator(startBlockNumber uint64) (ledger.ResultsIterator, error) GetTxValidationCodeByTxID(txID string) (peerproto.TxValidationCode, uint64, error) }
Ledger presents a subset of the PeerLedger used by the gateway packages to aid mocking.
type PeerAdapter ¶
PeerAdapter presents a peer as a LedgerProvider to aid mocking.
Click to show internal directories.
Click to hide internal directories.