eos

package
v1.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(tn *testnet.TestNet) ([]string, error)

func Build

func Build(tn *testnet.TestNet) ([]string, error)

*

  • Setup the EOS test net
  • @param int nodes The number of producers to make
  • @param []Server servers The list of relevant servers

func GetDefaults

func GetDefaults() string

func GetParams

func GetParams() string

func GetServices

func GetServices() []util.Service

Types

type EosConf

type EosConf struct {
	UserAccounts                   int64    `json:"userAccounts"`
	BlockProducers                 int64    `json:"validators"`
	AccountCpuStake                int64    `json:"accountCpuStake"`
	AccountRam                     int64    `json:"accountRam"`
	AccountNetStake                int64    `json:"accountNetStake"`
	AccountFunds                   int64    `json:"accountFunds"`
	BpCpuStake                     int64    `json:"bpCpuStake"`
	BpNetStake                     int64    `json:"bpNetStake"`
	BpRam                          int64    `json:"bpRam"`
	BpFunds                        int64    `json:"bpFunds"`
	MaxBlockNetUsage               int64    `json:"maxBlockNetUsage"`
	TargetBlockNetUsagePct         int64    `json:"targetBlockNetUsagePct"`
	MaxTransactionNetUsage         int64    `json:"maxTransactionNetUsage"`
	BasePerTransactionNetUsage     int64    `json:"basePerTransactionNetUsage"`
	NetUsageLeeway                 int64    `json:"netUsageLeeway"`
	ContextFreeDiscountNetUsageNum int64    `json:"contextFreeDiscountNetUsageNum"`
	ContextFreeDiscountNetUsageDen int64    `json:"contextFreeDiscountNetUsageDen"`
	MaxBlockCpuUsage               int64    `json:"maxBlockCpuUsage"`
	TargetBlockCpuUsagePct         int64    `json:"targetBlockCpuUsagePct"`
	MaxTransactionCpuUsage         int64    `json:"maxTransactionCpuUsage"`
	MinTransactionCpuUsage         int64    `json:"minTransactionCpuUsage"`
	MaxTransactionLifetime         int64    `json:"maxTransactionLifetime"`
	DeferredTrxExpirationWindow    int64    `json:"deferredTrxExpirationWindow"`
	MaxTransactionDelay            int64    `json:"maxTransactionDelay"`
	MaxInlineActionSize            int64    `json:"maxInlineActionSize"`
	MaxInlineActionDepth           int64    `json:"maxInlineActionDepth"`
	MaxAuthorityDepth              int64    `json:"maxAuthorityDepth"`
	InitialChainId                 string   `json:"initialChainId"`
	ChainStateDbSizeMb             int64    `json:"chainStateDbSizeMb"`
	ReversibleBlocksDbSizeMb       int64    `json:"reversibleBlocksDbSizeMb"`
	ContractsConsole               bool     `json:"contractsConsole"`
	P2pMaxNodesPerHost             int64    `json:"p2pMaxNodesPerHost"`
	AllowedConnection              string   `json:"allowedConnection"`
	MaxClients                     int64    `json:"maxClients"`
	ConnectionCleanupPeriod        int64    `json:"connectionCleanupPeriod"`
	NetworkVersionMatch            int64    `json:"networkVersionMatch"`
	SyncFetchSpan                  int64    `json:"syncFetchSpan"`
	PauseOnStartup                 bool     `json:"pauseOnStartup"`
	MaxTransactionTime             int64    `json:"maxTransactionTime"`
	MaxIrreversibleBlockAge        int64    `json:"maxIrreversibleBlockAge"`
	KeosdProviderTimeout           int64    `json:"keosdProviderTimeout"`
	TxnReferenceBlockLag           int64    `json:"txnReferenceBlockLag"`
	Plugins                        []string `json:"plugins"`
	ConfigExtras                   []string `json:"configExtras"`
}

func NewConf

func NewConf(data map[string]interface{}) (*EosConf, error)

func (*EosConf) GenerateConfig

func (this *EosConf) GenerateConfig() string

func (*EosConf) GenerateGenesis

func (this *EosConf) GenerateGenesis(masterPublicKey string, details *db.DeploymentDetails) (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL