From 78ff11fe537f219c2e0ec9381ab01b7e92631c3b Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Sun, 14 Jun 2020 22:38:43 +0300 Subject: [PATCH] netmode: make default Magic String() more useful --- pkg/config/netmode/netmode.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/config/netmode/netmode.go b/pkg/config/netmode/netmode.go index 8c3642d96..f7faa5ae3 100644 --- a/pkg/config/netmode/netmode.go +++ b/pkg/config/netmode/netmode.go @@ -1,5 +1,7 @@ package netmode +import "strconv" + const ( // MainNet contains magic code used in the NEO main official network. MainNet Magic = 0x004f454e // 5195086 @@ -26,6 +28,6 @@ func (n Magic) String() string { case UnitTestNet: return "unit_testnet" default: - return "net unknown" + return "net 0x" + strconv.FormatUint(uint64(n), 16) } }