monero

package
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	BlockTime = 60 * 2

	TransactionUnlockTime = 10
	MinerRewardUnlockTime = 60

	TailEmissionReward = 600000000000

	RequiredMajor         = 3
	RequiredMinor         = 10
	RequiredMoneroVersion = (RequiredMajor << 16) | RequiredMinor
	RequiredMoneroString  = "v0.18.0.0"
)
View Source
const (
	MainNetwork  = 18
	TestNetwork  = 53
	StageNetwork = 24

	SubAddressMainNetwork  = 42
	SubAddressTestNetwork  = 63
	SubAddressStageNetwork = 36

	IntegratedMainNetwork  = 19
	IntegratedTestNetwork  = 54
	IntegratedStageNetwork = 25
)
View Source
const (
	HardForkViewTagsVersion  = 15
	HardForkSupportedVersion = 16
)

Variables

This section is empty.

Functions

func NetworkMajorVersion added in v3.5.0

func NetworkMajorVersion(network uint8, height uint64) uint8

Types

type HardFork added in v3.5.0

type HardFork struct {
	// Version Numeric epoch of the version
	Version uint8 `json:"version"`
	// Time Block height at which the hardfork occurs (Monero)
	Height uint64 `json:"height"`
	// Threshold Not used currently
	Threshold uint8 `json:"threshold"`
	// Time Unix timestamp at which the hardfork occurs (p2pool), or when it happened (Monero)
	Time uint64 `json:"time"`
}

func NetworkHardFork added in v3.5.0

func NetworkHardFork(network uint8) []HardFork

Directories

Path Synopsis
rpc
Package rpc provides a client that's able to communicate with a `monerod` daemon via its RPC interfaces.
Package rpc provides a client that's able to communicate with a `monerod` daemon via its RPC interfaces.
rpc/daemon
Package daemon provides a client that encapsulates RPC methods and endpoints that can be hit in a daemon.
Package daemon provides a client that encapsulates RPC methods and endpoints that can be hit in a daemon.
zmq

Jump to

Keyboard shortcuts

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