memory

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MIT Imports: 11 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) GetBlock added in v1.3.15

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) GetSyncState added in v1.3.15

func (*InMemoryBlockPersistence) GetTransactionsBlock

func (*InMemoryBlockPersistence) ScanBlocks

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

supports two blockHeight ranges - (1-sequentialTop), (lastWritten-top)

func (*InMemoryBlockPersistence) WriteNextBlock

Jump to

Keyboard shortcuts

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