memory

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2019 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.BasicLogger
	// contains filtered or unexported fields
}

func NewBlockPersistence

func NewBlockPersistence(parent log.BasicLogger, 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

func (bp *InMemoryBlockPersistence) WriteNextBlock(blockPair *protocol.BlockPairContainer) (bool, error)

Jump to

Keyboard shortcuts

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