package
Version:
v0.0.0-...-f0b25c7
Opens a new window with list of versions in this module.
Published: Dec 12, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package genesis maintains access to the genesis file.
type Genesis struct {
Date time.Time `json:"date"`
ChainID uint16 `json:"chain_id"`
TransPerBlock uint16 `json:"trans_per_block"`
Difficulty uint16 `json:"difficulty"`
MiningReward uint64 `json:"mining_reward"`
GasPrice uint64 `json:"gas_price"`
Balances map[string]uint64 `json:"balances"`
}
Load opens and consumes the genesis file.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.