genesis_generator

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGenesisBlock added in v0.10.0

func GenerateGenesisBlock(scheme proto.Scheme, transactions []GenesisTransactionInfo, baseTarget uint64, timestamp proto.Timestamp) (*proto.Block, error)

GenerateGenesisBlock creates a new genesis block with a new signature. The signature will be different each time. This function should be used to create genesis block for integration tests and alike.

func RecreateGenesisBlock added in v0.10.0

func RecreateGenesisBlock(scheme proto.Scheme, transactions []GenesisTransactionInfo, baseTarget uint64, timestamp proto.Timestamp, signature crypto.Signature) (*proto.Block, error)

RecreateGenesisBlock builds the GenesisBlock and sets it signature to the given signature. Use this function to reproduce existing genesis blocks for known networks.

Types

type GenesisTransactionInfo added in v0.10.0

type GenesisTransactionInfo struct {
	Address   proto.WavesAddress
	Amount    uint64
	Timestamp uint64
}

Jump to

Keyboard shortcuts

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