netmode: use non-zero unittest network

Using zero is a bit dangerous as it's the default type's value, so we can miss
some uninitialized variables when testing.
This commit is contained in:
Roman Khimov 2020-06-14 22:40:52 +03:00
parent 78ff11fe53
commit 1c2318eed4
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
ProtocolConfiguration:
Magic: 0
Magic: 42
SecondsPerBlock: 15
LowPriorityThreshold: 0.000
MemPoolSize: 50000

View file

@ -10,7 +10,7 @@ const (
// 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 = 0
UnitTestNet Magic = 42
)
// Magic describes the network the blockchain will operate on.