test_block

package
v0.2.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNextBlock

func GetNextBlock(txs []*wire.MsgTx) *wire.MsgBlock

func GetRandom10Minute

func GetRandom10Minute() time.Duration

func ResetDefaultGenerator

func ResetDefaultGenerator()

Types

type BlockGenerator

type BlockGenerator struct {
	PrevBlock chainhash.Hash
	Time      time.Time
}

func (*BlockGenerator) GetNextBlock

func (g *BlockGenerator) GetNextBlock(txs []*wire.MsgTx) *wire.MsgBlock

Jump to

Keyboard shortcuts

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