Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileLedger ¶
type FileLedger struct {
// contains filtered or unexported fields
}
func NewFileLedger ¶
func NewFileLedger(blockStore FileLedgerBlockStore) *FileLedger
func (*FileLedger) Height ¶
func (fl *FileLedger) Height() uint64
func (*FileLedger) Iterator ¶
func (fl *FileLedger) Iterator(startPosition *ab.SeekPosition) (blockledger.Iterator, uint64)
type FileLedgerBlockStore ¶
type FileLedgerBlockStore interface { AddBlock(block *cb.Block) error GetBlockchainInfo() (*cb.BlockchainInfo, error) RetrieveBlocks(startBlockNumber uint64) (ledger.ResultsIterator, error) }
Click to show internal directories.
Click to hide internal directories.