test_tools

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDataDir

func DefaultDataDir() string

func NewPeriodTimeIndex added in v2.11.3

func NewPeriodTimeIndex(genesisTime *time.Time) interfaces.TimeIndex

func NewSbpStatReader added in v2.11.3

func NewSbpStatReader(ctrl *gomock.Controller) *core.MockSBPStatReader

func NewVerifier added in v2.11.3

func NewVerifier() interfaces.ConsensusVerifier

Types

type MockCssVerifier

type MockCssVerifier struct{}

func (*MockCssVerifier) VerifyABsProducer

func (c *MockCssVerifier) VerifyABsProducer(abs map[types.Gid][]*ledger.AccountBlock) ([]*ledger.AccountBlock, error)

func (*MockCssVerifier) VerifyAccountProducer

func (c *MockCssVerifier) VerifyAccountProducer(block *ledger.AccountBlock) (bool, error)

func (*MockCssVerifier) VerifySnapshotProducer

func (c *MockCssVerifier) VerifySnapshotProducer(block *ledger.SnapshotBlock) (bool, error)

Jump to

Keyboard shortcuts

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