sync_cache

package
v2.10.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: GPL-3.0 Imports: 23 Imported by: 1

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) (cache *syncCache, err error)

Types

type Reader

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

func NewReader

func NewReader(cache *syncCache, item *cacheItem) (*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

Verified is not thread-safe

func (*Reader) Verify

func (reader *Reader) Verify()

Verify is not thread-safe

Jump to

Keyboard shortcuts

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