Documentation
¶
Index ¶
- Variables
- func NewBlock(height int, c cctx.CryptoClient, a *cctx.Address) (*kmock.FakeBlock, error)
- func NewBlockWithStorage(height int, c cctx.CryptoClient, a *cctx.Address, s []byte) (*kmock.FakeBlock, error)
- func NewConsensusCtx(ledger *kmock.FakeLedger) (*cctx.ConsensusCtx, error)
- func NewCryptoClient() (cctx.CryptoClient, *cctx.Address, error)
- func NewFakeLogger() logs.Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BcName = "xuper5" PubKey = `` /* 184-byte string literal not displayed */ Miner = "dpzuVdosQrF2kmzumhVeFQZa1aYcdgFpN" )
Functions ¶
func NewBlockWithStorage ¶
func NewConsensusCtx ¶
func NewConsensusCtx(ledger *kmock.FakeLedger) (*cctx.ConsensusCtx, error)
NewConsensusCtx 返回除ledger以外的所有所需的共识上下文
func NewCryptoClient ¶
func NewCryptoClient() (cctx.CryptoClient, *cctx.Address, error)
func NewFakeLogger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.