storage

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: GPL-3.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db basedb.IDb, logger *zap.Logger, prefix string, forkVersion forksprotocol.ForkVersion) qbftstorage.QBFTStore

New create new ibft storage

Types

type QBFTStores added in v0.4.0

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

QBFTStores wraps sync map with cast functions to qbft store

func NewStores added in v0.4.0

func NewStores() *QBFTStores

func NewStoresFromRoles added in v0.4.0

func NewStoresFromRoles(db basedb.IDb, logger *zap.Logger, roles ...spectypes.BeaconRole) *QBFTStores

func (*QBFTStores) Add added in v0.4.0

func (qs *QBFTStores) Add(role spectypes.BeaconRole, store qbftstorage.QBFTStore)

Add store to sync map by role as a key

func (*QBFTStores) Get added in v0.4.0

Get store from sync map by role type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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