sync_cache

package
v2.1.3+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSegment

func NewSegment(from uint64, to uint64, prevHash, hash types.Hash) interfaces.Segment

func NewSyncCache

func NewSyncCache(dirName string) (interfaces.SyncCache, error)

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

func NewReader

func NewReader(cache *syncCache, seg interfaces.Segment) (*Reader, error)

func (*Reader) Close

func (reader *Reader) Close() error

func (*Reader) Read

func (reader *Reader) Read() (ab *ledger.AccountBlock, sb *ledger.SnapshotBlock, err error)

func (*Reader) Size

func (reader *Reader) Size() int64

func (*Reader) Verified

func (reader *Reader) Verified() bool

func (*Reader) Verify

func (reader *Reader) Verify()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL