mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 23:43:49 +00:00
b483c38593
We make it explicit in the appropriate Block/Transaction structures, not via a singleton as C# node does. I think this approach has a bit more potential and allows better packages reuse for different purposes.
8 lines
191 B
Go
8 lines
191 B
Go
package testchain
|
|
|
|
import "github.com/nspcc-dev/neo-go/pkg/config/netmode"
|
|
|
|
// Network returns test chain network's magic number.
|
|
func Network() netmode.Magic {
|
|
return netmode.UnitTestNet
|
|
}
|