Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(directory string) blockledger.Factory
Types ¶
type FileLedger ¶
type FileLedger struct {
// contains filtered or unexported fields
}
func NewFileLedger ¶
func NewFileLedger(blockStore FileLedgerBlockStore) *FileLedger
func (*FileLedger) Iterator ¶
func (fl *FileLedger) Iterator(startPosition *ab.SeekPosition) (blockledger.Iterator, uint64)
Iterator returns an Iterator, as specified by an ab.SeekInfo message, and its 起始块编号
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.