Documentation ¶
Index ¶
Constants ¶
const Daemonprocesscommandline = "daemonnode"
other internal constant
const MaxMinNumberTransactionInBlock = 1000
Max and Min number of transactions per block If number of block in a chain is less this umber then it is a minimum. if more then this number is a minimum unmber of TX
const MaxNumberTransactionInBlock = 10000
Max number of TX per block
const MinimumBlockBuildingTime = 3 // seconds
========================================================== Testing mode constants we need this for testing purposes. can be set to 0 on production system
const PidFileName = "server.pid"
File names
const TargetBits = 16
this defines how strong miming is needed. 16 is simple mining less 5 sec in simple desktop 24 will need 30 seconds in average
const TargetBits_2 = 24
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllPossibleArgs ¶
type AllPossibleArgs struct { Address string From string To string Port int Host string NodePort int NodeHost string Genesis string Amount float64 LogDest string Transaction string View string Clean bool }
Thi is the struct with all possible command line arguments
type AppInput ¶
type AppInput struct { Command string MinterAddress string Logs string Port int Host string DataDir string Nodes []net.NodeAddr Args AllPossibleArgs Database database.DatabaseConfig }
Input summary
func GetAppInput ¶
Parses inout and config file. Command line arguments ovverride config file options
func (AppInput) CheckConfigUpdateNeeded ¶
func (AppInput) CheckNeedsHelp ¶
func (AppInput) PrintUsage ¶
func (c AppInput) PrintUsage()