chain

package
Version: v0.98.5 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMulti

func NewMulti(t *testing.T) (*core.Blockchain, neotest.Signer, neotest.Signer)

NewMulti creates new blockchain instance with 4 validators and 6 committee members. Second return value is for validator signer, third -- for committee.

func NewMultiWithCustomConfig added in v0.98.1

func NewMultiWithCustomConfig(t *testing.T, f func(*config.ProtocolConfiguration)) (*core.Blockchain, neotest.Signer, neotest.Signer)

NewMultiWithCustomConfig creates new blockchain instance with custom protocol configuration, 4 validators and 6 committee members. Second return value is for validator signer, third -- for committee.

func NewSingle

func NewSingle(t *testing.T) (*core.Blockchain, neotest.Signer)

NewSingle creates new blockchain instance with a single validator and setups cleanup functions.

func NewSingleWithCustomConfig added in v0.98.1

func NewSingleWithCustomConfig(t *testing.T, f func(*config.ProtocolConfiguration)) (*core.Blockchain, neotest.Signer)

NewSingleWithCustomConfig creates new blockchain instance with custom protocol configuration and a single validator. It also setups cleanup functions.

func NewSingleWithCustomConfigAndStore added in v0.98.1

func NewSingleWithCustomConfigAndStore(t *testing.T, f func(cfg *config.ProtocolConfiguration), st storage.Store, run bool) (*core.Blockchain, neotest.Signer)

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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