Merge pull request #2081 from nspcc-dev/mainnet-config-update

config: update mainnet magic
This commit is contained in:
Roman Khimov 2021-07-21 15:03:58 +03:00 committed by GitHub
commit e3f19dd242
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
ProtocolConfiguration:
Magic: 5195086
Magic: 860833102
MaxTraceableBlocks: 2102400
InitialGASSupply: 52000000
SecondsPerBlock: 15

View file

@ -4,7 +4,7 @@ import "strconv"
const (
// MainNet contains magic code used in the NEO main official network.
MainNet Magic = 0x004f454e // 5195086
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.

View file

@ -46,7 +46,7 @@ func TestRuntimeGetRandomCompatibility(t *testing.T) {
b := getSharpTestGenesis(t)
tx := getSharpTestTx(util.Uint160{})
ic := bc.newInteropContext(trigger.Application, dao.NewCached(bc.dao), b, tx)
ic.Network = uint32(netmode.MainNet)
ic.Network = 5195086 // Old mainnet magic used by C# tests.
ic.VM = vm.New()
ic.VM.LoadScript([]byte{0x01})