dagconfig

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MainnetParams = Params{

	Name:        "metchain-mainnet",
	Net:         appmessage.Mainnet,
	RPCPort:     mconfig.MainnetPortRPC,
	DefaultPort: mconfig.MainnetPortP2p,
	DNSSeeds: []string{

		"n.metminingpool.com",
		"n.metscan.io",
		"n.metchain.community",
	},

	MetChainMiniBlock:  mconfig.MINING_REWARD,
	MetChainMiegaBlock: mconfig.MINING_REWARD_MEGA,
	MetChainMetBlock:   mconfig.MINING_REWARD_MET,
	DeadWallet:         mconfig.DeadWallet,

	TargetTimePerBlock: mconfig.MINING_TIMER_SEC,
}

MainnetParams defines the network parameters for the main Metchain network.

Functions

This section is empty.

Types

type Params

type Params struct {
	M external.MType

	// Name defines a human-readable identifier for the network.
	Name string

	// Net defines the magic bytes used to identify the network.
	Net appmessage.MetchainNet

	// RPCPort defines the rpc server port
	RPCPort string

	// DefaultPort defines the default peer-to-peer port for the network.
	DefaultPort string

	// DNSSeeds defines a list of DNS seeds for the network that are used
	// as one method to discover peers.
	DNSSeeds []string

	// GRPCSeeds defines a list of GRPC seeds for the network that are used
	// as one method to discover peers.
	GRPCSeeds []string

	// TargetTimePerBlock is the desired amount of time to generate each
	// block.
	TargetTimePerBlock time.Duration

	MetChainMiniBlock  float64
	MetChainMiegaBlock float64
	MetChainMetBlock   float64
	DeadWallet         string

	Prefix mconfig.Bech32Prefix
}

Jump to

Keyboard shortcuts

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