mock

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BcName = "xuper5"

	PubKey = `` /* 184-byte string literal not displayed */
	Miner  = "dpzuVdosQrF2kmzumhVeFQZa1aYcdgFpN"
)

Functions

func NewBlock

func NewBlock(height int, c cctx.CryptoClient, a *cctx.Address) (*kmock.FakeBlock, error)

func NewBlockWithStorage

func NewBlockWithStorage(height int, c cctx.CryptoClient, a *cctx.Address, s []byte) (*kmock.FakeBlock, error)

func NewConsensusCtx

func NewConsensusCtx(ledger *kmock.FakeLedger) (*cctx.ConsensusCtx, error)

NewConsensusCtx 返回除ledger以外的所有所需的共识上下文

func NewCryptoClient

func NewCryptoClient() (cctx.CryptoClient, *cctx.Address, error)

func NewFakeLogger

func NewFakeLogger() logs.Logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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