genesis_generator

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 2 Imported by: 1 module, 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

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