store

package
v2.9.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockStore

type BlockStore interface {
	PutSnapshot(block *common.SnapshotBlock)
	PutAccount(address common.Address, block *common.AccountStateBlock)
	DeleteSnapshot(hashH common.HashHeight)
	DeleteAccount(address common.Address, hashH common.HashHeight)

	SetSnapshotHead(hashH *common.HashHeight)
	SetAccountHead(address common.Address, hashH *common.HashHeight)

	GetSnapshotHead() *common.HashHeight
	GetAccountHead(address common.Address) *common.HashHeight

	GetSnapshotByHash(hash common.Hash) *common.SnapshotBlock
	GetSnapshotByHeight(height common.Height) *common.SnapshotBlock

	GetAccountByHash(address common.Address, hash common.Hash) *common.AccountStateBlock
	GetAccountByHeight(address common.Address, height common.Height) *common.AccountStateBlock

	GetAccountBySourceHash(hash common.Hash) *common.AccountStateBlock
	PutSourceHash(hash common.Hash, block *common.AccountHashH)
	DeleteSourceHash(hash common.Hash)
}

func NewStore

func NewStore(cfg *config.Chain) BlockStore

Directories

Path Synopsis
serializer

Jump to

Keyboard shortcuts

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