Documentation ¶
Index ¶
- func NewNextV01a(w module.Wallet, jsn blockv0.BlockV01aJSON, prev blockv0.Block) (blockv0.Block, error)
- func NewNextV03(w module.Wallet, jsn blockv0.BlockV03JSON, prev blockv0.Block, ...) (blockv0.Block, error)
- func NewPlatform() base.Platform
- func NodeFinalizeMerkle(n *test.Node) *hexary.MerkleHeader
- func NodeNewVoteListV1ForLastBlock(t *test.Node) *blockv0.BlockVoteList
- func UseBMForBlockV1(cf *test.FixtureConfig) *test.FixtureConfig
- func UseCSForBlockV1(cf *test.FixtureConfig) *test.FixtureConfig
- func UseICONPlatform() test.FixtureOption
- func UseMerkle(header *hexary.MerkleHeader, lastVote []byte) test.FixtureOption
- type BlockV0Generator
- func (g *BlockV0Generator) AddSetNextBlockVersionTx(v int32)
- func (g *BlockV0Generator) AddSetRandomValidatorsTx(n int)
- func (g *BlockV0Generator) AddTx(tx module.Transaction)
- func (g *BlockV0Generator) Close()
- func (g *BlockV0Generator) GenerateNext(w module.Wallet)
- func (g *BlockV0Generator) GetBlockByHeight(height int) (blockv0.Block, error)
- func (g *BlockV0Generator) GetReceipt(id []byte) (module.Receipt, error)
- func (g *BlockV0Generator) GetRepsByHash(hash []byte) (*blockv0.RepsList, error)
- func (g *BlockV0Generator) GetVotesByHeight(h int) (*blockv0.BlockVoteList, error)
- func (g *BlockV0Generator) Validators() []module.Wallet
- func (g *BlockV0Generator) ValidatorsInTx() []module.Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNextV01a ¶
func NewNextV03 ¶
func NewPlatform ¶
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
Click to show internal directories.
Click to hide internal directories.