core: fix GAS distribution to primary node when notary enabled

Close #2310.
This commit is contained in:
AnnaShaleva 2021-12-13 18:16:27 +03:00
parent b43335e591
commit 8c6de35ec2
3 changed files with 113 additions and 4 deletions

View file

@ -75,7 +75,7 @@ func NewContracts(cfg config.ProtocolConfiguration) *Contracts {
cs.Ledger = ledger
cs.Contracts = append(cs.Contracts, ledger)
gas := newGAS(int64(cfg.InitialGASSupply))
gas := newGAS(int64(cfg.InitialGASSupply), cfg.P2PSigExtensions)
neo := newNEO()
neo.GAS = gas
gas.NEO = neo