config: add InitialGASSupply, fix #2073

We now have 52M by default.
This commit is contained in:
Roman Khimov 2021-07-20 15:54:56 +03:00
parent c88ebaede9
commit 36d486a664
12 changed files with 45 additions and 22 deletions

View file

@ -1639,7 +1639,7 @@ func TestConfigNativeUpdateHistory(t *testing.T) {
cfgPath := path.Join(prefixPath, fmt.Sprintf("protocol.%s.yml", cfgFileSuffix))
cfg, err := config.LoadFile(cfgPath)
require.NoError(t, err, fmt.Errorf("failed to load %s", cfgPath))
natives := native.NewContracts(cfg.ProtocolConfiguration.P2PSigExtensions, map[string][]uint32{})
natives := native.NewContracts(cfg.ProtocolConfiguration)
assert.Equal(t, len(natives.Contracts),
len(cfg.ProtocolConfiguration.NativeUpdateHistories),
fmt.Errorf("protocol configuration file %s: extra or missing NativeUpdateHistory in NativeActivations section", cfgPath))