{"modulePath":"github.com/Oneledger/protocol","version":"v0.18.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package main\n\n\tCopyright 2017-2018 OneLedger\n\n\tCli to init a node (server)\n\n\tCopyright 2017-2018 OneLedger\n\n\tA fullnode for the OneLedger chain. Includes cli arguments to initialize, restart, etc.\n\n/\\*\n\n\tCopyright 2017-2018 OneLedger\n\n\tCli to start a node (server) running.\n\n\\*/\n\n\tCopyright 2017-2018 OneLedger\n\n\tSetup the root command structure for all of cli commands\n\n/\\*\n\n\tCopyright 2017-2018 OneLedger\n\n\tCli to interact with a with the chain.\n\n\\*/\n\n## Variables\n\n```go\nvar RootCmd = \u0026cobra.Command{\n\tUse:   \"olfullnode\",\n\tShort: \"olfullnode\",\n\tLong:  \"OneLedger chain, olfullnode\",\n}\n```\n\n## Functions\n\n```go\nfunc DumpBalanceToFile(bs *balance.Store, writer io.Writer, fn func(writer io.Writer, obj interface{}) bool)\n```\nRetrieves complete list of Balance records and writes them to an io stream.\n\n```go\nfunc DumpDomainToFile(ds *ons.DomainStore, height int64, writer io.Writer, fn func(writer io.Writer, obj interface{}) bool)\n```\n\n```go\nfunc DumpFeesToFile(st *fees.Store, writer io.Writer, fn func(writer io.Writer, obj interface{}) bool)\n```\n\n```go\nfunc DumpGovProposalsToFile(pm *governance.ProposalMasterStore, writer io.Writer, fn func(writer io.Writer, obj interface{}) bool)\n```\n\n```go\nfunc DumpNetworkDelegatorsToFile(nd *network_delegation.Store, writer io.Writer, fn func(writer io.Writer, obj interface{}) bool)\n```\n\n```go\nfunc DumpStakingToFile(vs *identity.ValidatorStore, writer io.Writer, fn func(writer io.Writer, obj interface{}) bool)\n```\n\n```go\nfunc DumpTrackerToFile(ts *ethereum.TrackerStore, writer io.Writer, fn func(writer io.Writer, obj interface{}) bool)\n```\nSave all Current trackers to Genesis file. Currently only supported for Ethereum. TODO: Add support for Bitcoin\n\n```go\nfunc DumpValidatorsToFile(vs *identity.ValidatorStore, writer io.Writer, fn func(writer io.Writer, obj interface{}) bool)\n```\n\n```go\nfunc Execute()\n```\n\n```go\nfunc GetGovernance(gs *governance.Store) *governance.GovernanceState\n```\n\n```go\nfunc SaveChainState(application *app.App, filename string, directory string) error\n```\n\n```go\nfunc SaveState(cmd *cobra.Command, args []string) error\n```\n\n```go\nfunc ShowID(cmd *cobra.Command, args []string) error\n```\n\n```go\nfunc StartNode(cmd *cobra.Command, args []string) error\n```\nStart a node to run continously\n\n```go\nfunc Version(cmd *cobra.Command, args []string)\n```\n\n## Types\n\n```go\ntype BlockParams struct {\n\tMaxBytes int64 `json:\"max_bytes,string\"`\n\tMaxGas   int64 `json:\"max_gas,string\"`\n\t// Minimum time increment between consecutive blocks (in milliseconds)\n\t// Not exposed to the application.\n\tTimeIotaMs int64 `json:\"time_iota_ms,string\"`\n}\n```\nBlockParams define limits on the block size and gas plus minimum time between blocks.\n\n```go\ntype ConsensusParams struct {\n\tBlock     BlockParams     `json:\"block\"`\n\tEvidence  EvidenceParams  `json:\"evidence\"`\n\tValidator ValidatorParams `json:\"validator\"`\n}\n```\nConsensusParams contains consensus critical parameters that determine the validity of blocks. Originally from Tendermint but redefined here to customize the JSON output as all values need to be encoded as string.\n\n```go\ntype EvidenceParams struct {\n\tMaxAgeNumBlocks int64         `json:\"max_age_num_blocks,string\"` // only accept new evidence more recent than this\n\tMaxAgeDuration  time.Duration `json:\"max_age_duration,string\"`\n}\n```\nEvidenceParams determine how we handle evidence of malfeasance.\n\n```go\ntype ForkParams struct {\n\tFrankensteinBlock string `json:\"frankensteinBlock\"`\n}\n```\n\n```go\ntype GenesisValidator struct {\n\tAddress string    `json:\"address\"`\n\tPubKey  publicKey `json:\"pub_key\"`\n\tPower   int64     `json:\"power,string\"`\n\tName    string    `json:\"name\"`\n}\n```\n\n```go\ntype InitCmdArguments struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype ReplayArgs struct {\n\tHeight int64\n}\n```\n\n```go\ntype ValidatorParams struct {\n\tPubKeyTypes []string `json:\"pub_key_types\"`\n}\n```\nValidatorParams restrict the public key types validators can use. NOTE: uses ABCI pubkey naming, not Amino names.\n\n","path":"github.com/Oneledger/protocol/cmd/olfullnode","name":"main","synopsis":"","isRedistributable":true}
