dataPool

package
v1.0.77 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCurrentBlockPool

func NewCurrentBlockPool() (*transactionMapCacher, error)

NewCurrentBlockPool returns a new pool to be used for current block

func NewMetaDataPool added in v1.0.3

func NewMetaDataPool(
	miniBlocks storage.Cacher,
	trieNodes storage.Cacher,
	headersCacher dataRetriever.HeadersPool,
	transactions dataRetriever.ShardedDataCacherNotifier,
	unsignedTransactions dataRetriever.ShardedDataCacherNotifier,
	currBlockTxs dataRetriever.TransactionCacher,
) (*metaDataPool, error)

NewMetaDataPool creates a data pools holder object

func NewShardedDataPool added in v1.0.3

func NewShardedDataPool(
	transactions dataRetriever.ShardedDataCacherNotifier,
	unsignedTransactions dataRetriever.ShardedDataCacherNotifier,
	rewardTransactions dataRetriever.ShardedDataCacherNotifier,
	headers dataRetriever.HeadersPool,
	miniBlocks storage.Cacher,
	peerChangesBlocks storage.Cacher,
	trieNodes storage.Cacher,
	currBlockTxs dataRetriever.TransactionCacher,
) (*shardedDataPool, error)

NewShardedDataPool creates a data pools holder object

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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