ictest

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNextV01a

func NewNextV01a(
	w module.Wallet,
	jsn blockv0.BlockV01aJSON,
	prev blockv0.Block,
) (blockv0.Block, error)

func NewNextV03

func NewNextV03(
	w module.Wallet,
	jsn blockv0.BlockV03JSON,
	prev blockv0.Block,
	lc blockv0.Store,
) (blockv0.Block, error)

func NewPlatform

func NewPlatform() base.Platform

func NodeFinalizeMerkle

func NodeFinalizeMerkle(n *test.Node) *hexary.MerkleHeader

func NodeNewVoteListV1ForLastBlock

func NodeNewVoteListV1ForLastBlock(t *test.Node) *blockv0.BlockVoteList

func UseBMForBlockV1

func UseBMForBlockV1(cf *test.FixtureConfig) *test.FixtureConfig

func UseCSForBlockV1

func UseCSForBlockV1(cf *test.FixtureConfig) *test.FixtureConfig

func UseICONPlatform

func UseICONPlatform() test.FixtureOption

func UseMerkle

func UseMerkle(header *hexary.MerkleHeader, lastVote []byte) test.FixtureOption

Types

type BlockV0Generator

type BlockV0Generator struct {
	// contains filtered or unexported fields
}

func NewBlockV0Generator

func NewBlockV0Generator(t *testing.T, genesis string) *BlockV0Generator

func (*BlockV0Generator) AddSetNextBlockVersionTx

func (g *BlockV0Generator) AddSetNextBlockVersionTx(v int32)

func (*BlockV0Generator) AddSetRandomValidatorsTx

func (g *BlockV0Generator) AddSetRandomValidatorsTx(n int)

func (*BlockV0Generator) AddTx

func (g *BlockV0Generator) AddTx(tx module.Transaction)

func (*BlockV0Generator) Close

func (g *BlockV0Generator) Close()

func (*BlockV0Generator) GenerateNext

func (g *BlockV0Generator) GenerateNext(w module.Wallet)

func (*BlockV0Generator) GetBlockByHeight

func (g *BlockV0Generator) GetBlockByHeight(height int) (blockv0.Block, error)

func (*BlockV0Generator) GetReceipt

func (g *BlockV0Generator) GetReceipt(id []byte) (module.Receipt, error)

func (*BlockV0Generator) GetRepsByHash

func (g *BlockV0Generator) GetRepsByHash(hash []byte) (*blockv0.RepsList, error)

func (*BlockV0Generator) GetVotesByHeight

func (g *BlockV0Generator) GetVotesByHeight(h int) (*blockv0.BlockVoteList, error)

func (*BlockV0Generator) Validators

func (g *BlockV0Generator) Validators() []module.Wallet

func (*BlockV0Generator) ValidatorsInTx

func (g *BlockV0Generator) ValidatorsInTx() []module.Wallet

Jump to

Keyboard shortcuts

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