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 }
Click to show internal directories.
Click to hide internal directories.