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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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