syscoin

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: 11 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 GetDefaults

func GetDefaults() string

func GetParams

func GetParams() string

func GetServices

func GetServices() []util.Service

func RegTest

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

*

  • Sets up Syscoin Testnet in Regtest mode
  • @param {[type]} data map[string]interface{} The configuration optiosn given by the client
  • @param {[type]} nodes int The number of nodes to build
  • @param {[type]} servers []db.Server) The servers to be built on
  • @return ([]string,error [description]

Types

type SysConf

type SysConf struct {
	Options []string `json:"options"`
	Extras  []string `json:"extras"`

	SenderOptions   []string `json:"senderOptions"`
	ReceiverOptions []string `json:"receiverOptions"`
	MNOptions       []string `json:"mnOptions"`

	SenderExtras   []string `json:"senderExtras"`
	ReceiverExtras []string `json:"receiverExtras"`
	MNExtras       []string `json:"mnExtras"`

	MasterNodeConns int64 `json:"masterNodeConns"`
	NodeConns       int64 `json:"nodeConns"`
	PercOfMNodes    int64 `json:"percentMasternodes"`
	Validators      int64 `json:"validators"`
}

func NewConf

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

func (*SysConf) Generate

func (this *SysConf) Generate() string

func (*SysConf) GenerateMN

func (this *SysConf) GenerateMN() string

func (*SysConf) GenerateReceiver

func (this *SysConf) GenerateReceiver() string

func (*SysConf) GenerateSender

func (this *SysConf) GenerateSender() string

Jump to

Keyboard shortcuts

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