integration

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FlushIDKey = hexutils.HexToBytes("0068c2927bf842c3e9e2f1364494a33a752db334b9a819534bc9f17d2c3b4e5970008ff519d35a86f29fcaa5aae706b75dee871f65f174fcea1747f2915fc92158f6bfbf5eb79f65d16225738594bffb0c")
)

Functions

func CheckDBList

func CheckDBList(names []string) error

func DBProducer

func DBProducer(chaindataDir string, scale cachescale.Func) kvdb.IterableDBProducer

func MakeEngine

MakeEngine makes consensus engine from config.

func SetAccountKey

func SetAccountKey(
	am *accounts.Manager, key *ecdsa.PrivateKey, pswd string,
) (
	acc accounts.Account,
)

SetAccountKey sets key into accounts manager and unlocks it with pswd.

func WrapDatabaseWithMetrics added in v1.0.2

func WrapDatabaseWithMetrics(db kvdb.FlushableDBProducer) kvdb.FlushableDBProducer

Types

type Configs

type Configs struct {
	Ncogearthchain      gossip.Config
	NcogearthchainStore gossip.StoreConfig
	Forest              abft.Config
	ForestStore         abft.StoreConfig
	VectorClock         vecmt.IndexConfig
	AllowedGenesis      map[uint64]hash.Hash
}

type DBProducerWithMetrics added in v1.0.2

type DBProducerWithMetrics struct {
	kvdb.FlushableDBProducer
}

func (*DBProducerWithMetrics) OpenDB added in v1.0.2

func (db *DBProducerWithMetrics) OpenDB(name string) (kvdb.DropableStore, error)

type DropableStoreWithMetrics added in v1.0.2

type DropableStoreWithMetrics struct {
	kvdb.DropableStore
	// contains filtered or unexported fields
}

func WrapStoreWithMetrics added in v1.0.2

func WrapStoreWithMetrics(ds kvdb.DropableStore) *DropableStoreWithMetrics

func (*DropableStoreWithMetrics) Close added in v1.0.2

func (ds *DropableStoreWithMetrics) Close() error

type DummyFlushableProducer

type DummyFlushableProducer struct {
	kvdb.DBProducer
}

func (*DummyFlushableProducer) Flush

func (p *DummyFlushableProducer) Flush(_ []byte) error

func (*DummyFlushableProducer) NotFlushedSizeEst

func (p *DummyFlushableProducer) NotFlushedSizeEst() int

type GenesisMismatchError

type GenesisMismatchError struct {
	Stored, New hash.Hash
}

GenesisMismatchError is raised when trying to overwrite an existing genesis block with an incompatible one.

func (*GenesisMismatchError) Error

func (e *GenesisMismatchError) Error() string

Error implements error interface.

type GossipStoreAdapter

type GossipStoreAdapter struct {
	*gossip.Store
}

func (*GossipStoreAdapter) GetEvent

func (g *GossipStoreAdapter) GetEvent(id hash.Event) dag.Event

type InputGenesis

type InputGenesis struct {
	Hash  hash.Hash
	Read  func(*genesisstore.Store) error
	Close func() error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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