netmode

package
v0.98.4-pre Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 1 Imported by: 6

Documentation

Overview

Package netmode contains well-known network magic numbers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Magic

type Magic uint32

Magic describes the network the blockchain will operate on.

const (
	// MainNet contains magic code used in the NEO main official network.
	MainNet Magic = 0x334f454e // NEO3
	// TestNet contains magic code used in the NEO testing network.
	TestNet Magic = 0x3454334e // N3T4
	// PrivNet contains magic code usually used for NEO private networks.
	PrivNet Magic = 56753 // docker privnet
	// UnitTestNet is a stub magic code used for testing purposes.
	UnitTestNet Magic = 42
)

func (Magic) String

func (n Magic) String() string

String implements the stringer interface.

Jump to

Keyboard shortcuts

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