testblock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSystemIdentifier = 0x00000001
	DefaultT2Timeout        = 2500
	DefaultRoundNumber      = 1
)

Variables

This section is empty.

Functions

func CreateBlock added in v0.4.0

func CreateProof

func CreateProof(t *testing.T, tx *types.TransactionRecord, signer abcrypto.Signer, opts ...Option) *types.TxProof

func CreateProofs added in v0.3.0

func CreateProofs(t *testing.T, txs []*types.TransactionRecord, signer abcrypto.Signer, opts ...Option) []*types.TxProof

func DefaultSDR added in v0.3.0

func DefaultSDR() *genesis.SystemDescriptionRecord

Types

type Option added in v0.3.0

type Option func(*Options)

func WithSystemIdentifier added in v0.3.0

func WithSystemIdentifier(systemID types.SystemID) Option

type Options added in v0.3.0

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

func DefaultOptions added in v0.3.0

func DefaultOptions() *Options

Jump to

Keyboard shortcuts

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