test_tools

package
v2.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDataDir

func DefaultDataDir() string

func NewChainInstanceFromDir

func NewChainInstanceFromDir(dirName string, clear bool, genesis string) (chain.Chain, error)

Types

type MockConsensus

type MockConsensus struct{}

func (*MockConsensus) SBPReader

func (c *MockConsensus) SBPReader() core.SBPStatReader

func (*MockConsensus) VerifyABsProducer

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

func (*MockConsensus) VerifyAccountProducer

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

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