mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-12 11:10:35 +00:00
b2944bcf8a
It's 827601742, N3T1, see https://github.com/neo-project/neo-node/releases/tag/v3.0.0-rc1
33 lines
848 B
Go
33 lines
848 B
Go
package netmode
|
|
|
|
import "strconv"
|
|
|
|
const (
|
|
// MainNet contains magic code used in the NEO main official network.
|
|
MainNet Magic = 0x004f454e // 5195086
|
|
// TestNet contains magic code used in the NEO testing network.
|
|
TestNet Magic = 0x3154334e // 827601742
|
|
// 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
|
|
)
|
|
|
|
// Magic describes the network the blockchain will operate on.
|
|
type Magic uint32
|
|
|
|
// String implements the stringer interface.
|
|
func (n Magic) String() string {
|
|
switch n {
|
|
case PrivNet:
|
|
return "privnet"
|
|
case TestNet:
|
|
return "testnet"
|
|
case MainNet:
|
|
return "mainnet"
|
|
case UnitTestNet:
|
|
return "unit_testnet"
|
|
default:
|
|
return "net 0x" + strconv.FormatUint(uint64(n), 16)
|
|
}
|
|
}
|