memory

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryBlockPersistence

type InMemoryBlockPersistence struct {
	Logger log.Logger
	// contains filtered or unexported fields
}

func NewBlockPersistence

func NewBlockPersistence(parent log.Logger, metricFactory metric.Factory, preloadedBlocks ...*protocol.BlockPairContainer) *InMemoryBlockPersistence

func (*InMemoryBlockPersistence) GetBlockByTx

func (*InMemoryBlockPersistence) GetBlockTracker

func (bp *InMemoryBlockPersistence) GetBlockTracker() *synchronization.BlockTracker

func (*InMemoryBlockPersistence) GetLastBlock

func (*InMemoryBlockPersistence) GetLastBlockHeight

func (bp *InMemoryBlockPersistence) GetLastBlockHeight() (primitives.BlockHeight, error)

func (*InMemoryBlockPersistence) GetResultsBlock

func (*InMemoryBlockPersistence) GetTransactionsBlock

func (*InMemoryBlockPersistence) ScanBlocks

func (bp *InMemoryBlockPersistence) ScanBlocks(from primitives.BlockHeight, pageSize uint8, f adapter.CursorFunc) error

func (*InMemoryBlockPersistence) WriteNextBlock

Jump to

Keyboard shortcuts

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