Documentation ¶
Index ¶
Constants ¶
View Source
const TotalMoney = algoTotalMoney - algoRewardPool + rewardPoolBalanceAtInception + inputPoolBalanceAtInception
TotalMoney represents the total amount of MicroAlgos in the system
Variables ¶
View Source
var DefaultGenesis = GenesisData{
FirstPartKeyRound: 0,
LastPartKeyRound: 3000000,
}
DefaultGenesis should be used as the default initial state for any GenesisData instance (because we have no ctors...)
Functions ¶
func GenerateGenesisFiles ¶
func GenerateGenesisFiles(genesisData GenesisData, consensus config.ConsensusProtocols, outDir string, verboseOut io.Writer) error
GenerateGenesisFiles generates the genesis.json file and wallet files for a give genesis configuration.
func InitialBalance ¶
Types ¶
type GenesisData ¶
type GenesisData struct { NetworkName string VersionModifier string ConsensusProtocol protocol.ConsensusVersion FirstPartKeyRound uint64 LastPartKeyRound uint64 PartKeyDilution uint64 Wallets []WalletData FeeSink basics.Address RewardsPool basics.Address InputPool basics.Address Comment string }
GenesisData represents the genesis data for creating a genesis.json and wallets
func LoadGenesisData ¶
func LoadGenesisData(file string) (gen GenesisData, err error)
LoadGenesisData loads a GenesisData structure from a json file
type WalletData ¶
WalletData represents a wallet's name, percent stake, and initial online status for a genesis.json file
Click to show internal directories.
Click to hide internal directories.