Documentation ¶
Index ¶
- func NewMulti(t *testing.T) (*core.Blockchain, neotest.Signer, neotest.Signer)
- func NewMultiWithCustomConfig(t *testing.T, f func(*config.ProtocolConfiguration)) (*core.Blockchain, neotest.Signer, neotest.Signer)
- func NewSingle(t *testing.T) (*core.Blockchain, neotest.Signer)
- func NewSingleWithCustomConfig(t *testing.T, f func(*config.ProtocolConfiguration)) (*core.Blockchain, neotest.Signer)
- func NewSingleWithCustomConfigAndStore(t *testing.T, f func(cfg *config.ProtocolConfiguration), st storage.Store, ...) (*core.Blockchain, neotest.Signer)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMulti ¶
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 ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.