Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate vm improve 1.5.5 #6139

Merged
merged 20 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions cmd/node/config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,9 @@
{ StartEpoch = 0, Version = "v1.4" },
{ StartEpoch = 1, Version = "v1.5" }, # TODO: set also the RoundActivations.DisableAsyncCallV1 accordingly
]
TransferAndExecuteByUserAddresses = [ # TODO: set real contract addresses for all shards
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe3", #shard 0
]

[VirtualMachine.Querying]
NumConcurrentVMs = 1
Expand All @@ -684,6 +687,9 @@
{ StartEpoch = 0, Version = "v1.4" },
{ StartEpoch = 1, Version = "v1.5" }, # TODO: set also the RoundActivations.DisableAsyncCallV1 accordingly
]
TransferAndExecuteByUserAddresses = [ # TODO: set real contract addresses for all shards
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe3",
]

[VirtualMachine.GasConfig]
# The following values define the maximum amount of gas to be allocated for VM Queries coming from API
Expand Down
6 changes: 6 additions & 0 deletions cmd/node/config/enableEpochs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,12 @@
# DynamicESDTEnableEpoch represents the epoch when dynamic NFT feature is enabled
DynamicESDTEnableEpoch = 4

# EGLDInMultiTransferEnableEpoch represents the epoch when EGLD in multitransfer is enabled
EGLDInMultiTransferEnableEpoch = 4

# CryptoAPIV2EnableEpoch represents the epoch when BLSMultiSig, Secp256r1 and other opcodes are enabled
CryptoAPIV2EnableEpoch = 4

# BLSMultiSignerEnableEpoch represents the activation epoch for different types of BLS multi-signers
BLSMultiSignerEnableEpoch = [
{ EnableEpoch = 0, Type = "no-KOSK" },
Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/gasSchedules/gasScheduleV1.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
UnmarshalCompressedECC = 270000
GenerateKeyECC = 7000000
EncodeDERSig = 10000000
VerifySecp256r1 = 2000000
VerifyBLSSignatureShare = 2000000
VerifyBLSMultiSig = 2000000

[ManagedBufferAPICost]
MBufferNew = 2000
Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/gasSchedules/gasScheduleV2.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
UnmarshalCompressedECC = 270000
GenerateKeyECC = 7000000
EncodeDERSig = 10000000
VerifySecp256r1 = 2000000
VerifyBLSSignatureShare = 2000000
VerifyBLSMultiSig = 2000000

[ManagedBufferAPICost]
MBufferNew = 2000
Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/gasSchedules/gasScheduleV3.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
UnmarshalCompressedECC = 270000
GenerateKeyECC = 7000000
EncodeDERSig = 10000000
VerifySecp256r1 = 2000000
VerifyBLSSignatureShare = 2000000
VerifyBLSMultiSig = 2000000

[ManagedBufferAPICost]
MBufferNew = 2000
Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/gasSchedules/gasScheduleV4.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
UnmarshalCompressedECC = 270000
GenerateKeyECC = 7000000
EncodeDERSig = 10000000
VerifySecp256r1 = 2000000
VerifyBLSSignatureShare = 2000000
VerifyBLSMultiSig = 2000000

[ManagedBufferAPICost]
MBufferNew = 2000
Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/gasSchedules/gasScheduleV5.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
UnmarshalCompressedECC = 270000
GenerateKeyECC = 7000000
EncodeDERSig = 10000000
VerifySecp256r1 = 2000000
VerifyBLSSignatureShare = 2000000
VerifyBLSMultiSig = 2000000

[ManagedBufferAPICost]
MBufferNew = 2000
Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/gasSchedules/gasScheduleV6.toml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
UnmarshalCompressedECC = 270000
GenerateKeyECC = 7000000
EncodeDERSig = 10000000
VerifySecp256r1 = 2000000
VerifyBLSSignatureShare = 2000000
VerifyBLSMultiSig = 2000000

[ManagedBufferAPICost]
MBufferNew = 2000
Expand Down
3 changes: 3 additions & 0 deletions cmd/node/config/gasSchedules/gasScheduleV7.toml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@
UnmarshalCompressedECC = 270000
GenerateKeyECC = 7000000
EncodeDERSig = 10000000
VerifySecp256r1 = 2000000
VerifyBLSSignatureShare = 2000000
VerifyBLSMultiSig = 2000000

[ManagedBufferAPICost]
MBufferNew = 2000
Expand Down
2 changes: 2 additions & 0 deletions common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -1015,5 +1015,7 @@ const (
StakingV4StartedFlag core.EnableEpochFlag = "StakingV4StartedFlag"
AlwaysMergeContextsInEEIFlag core.EnableEpochFlag = "AlwaysMergeContextsInEEIFlag"
DynamicESDTFlag core.EnableEpochFlag = "DynamicEsdtFlag"
EGLDInESDTMultiTransferFlag core.EnableEpochFlag = "EGLDInESDTMultiTransferFlag"
CryptoAPIV2Flag core.EnableEpochFlag = "CryptoAPIV2Flag"
mariusmihaic marked this conversation as resolved.
Show resolved Hide resolved
// all new flags must be added to createAllFlagsMap method, as part of enableEpochsHandler allFlagsDefined
)
12 changes: 12 additions & 0 deletions common/enablers/enableEpochsHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,18 @@ func (handler *enableEpochsHandler) createAllFlagsMap() {
},
activationEpoch: handler.enableEpochsConfig.DynamicESDTEnableEpoch,
},
common.EGLDInESDTMultiTransferFlag: {
isActiveInEpoch: func(epoch uint32) bool {
return epoch >= handler.enableEpochsConfig.EGLDInMultiTransferEnableEpoch
},
activationEpoch: handler.enableEpochsConfig.EGLDInMultiTransferEnableEpoch,
},
common.CryptoAPIV2Flag: {
isActiveInEpoch: func(epoch uint32) bool {
return epoch >= handler.enableEpochsConfig.CryptoAPIV2EnableEpoch
},
activationEpoch: handler.enableEpochsConfig.CryptoAPIV2EnableEpoch,
},
}
}

Expand Down
4 changes: 4 additions & 0 deletions common/enablers/enableEpochsHandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ func createEnableEpochsConfig() config.EnableEpochs {
StakingV4Step3EnableEpoch: 99,
AlwaysMergeContextsInEEIEnableEpoch: 100,
DynamicESDTEnableEpoch: 101,
EGLDInMultiTransferEnableEpoch: 102,
CryptoAPIV2EnableEpoch: 103,
}
}

Expand Down Expand Up @@ -440,6 +442,8 @@ func TestEnableEpochsHandler_GetActivationEpoch(t *testing.T) {
require.Equal(t, cfg.StakingV4Step1EnableEpoch, handler.GetActivationEpoch(common.StakingV4StartedFlag))
require.Equal(t, cfg.AlwaysMergeContextsInEEIEnableEpoch, handler.GetActivationEpoch(common.AlwaysMergeContextsInEEIFlag))
require.Equal(t, cfg.DynamicESDTEnableEpoch, handler.GetActivationEpoch(common.DynamicESDTFlag))
require.Equal(t, cfg.EGLDInMultiTransferEnableEpoch, handler.GetActivationEpoch(common.EGLDInESDTMultiTransferFlag))
mariusmihaic marked this conversation as resolved.
Show resolved Hide resolved
require.Equal(t, cfg.CryptoAPIV2EnableEpoch, handler.GetActivationEpoch(common.CryptoAPIV2Flag))
}

func TestEnableEpochsHandler_IsInterfaceNil(t *testing.T) {
Expand Down
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ type VirtualMachineConfig struct {
WasmVMVersions []WasmVMVersionByEpoch
TimeOutForSCExecutionInMilliseconds uint32
WasmerSIGSEGVPassthrough bool
TransferAndExecuteByUserAddresses []string
}

// WasmVMVersionByEpoch represents the Wasm VM version to be used starting with an epoch
Expand Down
2 changes: 2 additions & 0 deletions config/epochConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ type EnableEpochs struct {
StakingV4Step3EnableEpoch uint32
AlwaysMergeContextsInEEIEnableEpoch uint32
DynamicESDTEnableEpoch uint32
EGLDInMultiTransferEnableEpoch uint32
CryptoAPIV2EnableEpoch uint32
BLSMultiSignerEnableEpoch []MultiSignerConfig
}

Expand Down
17 changes: 17 additions & 0 deletions config/tomlConfig_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ func TestTomlParser(t *testing.T) {
WasmVMVersions: wasmVMVersions,
TimeOutForSCExecutionInMilliseconds: 10000,
WasmerSIGSEGVPassthrough: true,
TransferAndExecuteByUserAddresses: []string{
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe0",
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe1",
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe2"},
},
Querying: QueryVirtualMachineConfig{
NumConcurrentVMs: 16,
Expand Down Expand Up @@ -199,6 +203,11 @@ func TestTomlParser(t *testing.T) {
{ StartEpoch = 12, Version = "v0.3" },
{ StartEpoch = 88, Version = "v1.2" },
]
TransferAndExecuteByUserAddresses = [ # TODO: set real contract addresses
mariusmihaic marked this conversation as resolved.
Show resolved Hide resolved
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe0", #shard 0
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe1", #shard 1
"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe2", #shard 2
]

[VirtualMachine.Querying]
NumConcurrentVMs = 16
Expand Down Expand Up @@ -853,6 +862,12 @@ func TestEnableEpochConfig(t *testing.T) {
# DynamicESDTEnableEpoch represents the epoch when dynamic NFT feature is enabled
DynamicESDTEnableEpoch = 95

# EGLDInMultiTransferEnableEpoch represents the epoch when EGLD in MultiTransfer is enabled
EGLDInMultiTransferEnableEpoch = 96

# CryptoAPIV2EnableEpoch represents the epoch when BLSMultiSig, Secp256r1 and other opcodes are enabled
CryptoAPIV2EnableEpoch = 97

# MaxNodesChangeEnableEpoch holds configuration for changing the maximum number of nodes and the enabling epoch
MaxNodesChangeEnableEpoch = [
{ EpochEnable = 44, MaxNumNodes = 2169, NodesToShufflePerShard = 80 },
Expand Down Expand Up @@ -966,6 +981,8 @@ func TestEnableEpochConfig(t *testing.T) {
CurrentRandomnessOnSortingEnableEpoch: 93,
AlwaysMergeContextsInEEIEnableEpoch: 94,
DynamicESDTEnableEpoch: 95,
EGLDInMultiTransferEnableEpoch: 96,
CryptoAPIV2EnableEpoch: 97,
MaxNodesChangeEnableEpoch: []MaxNodesChangeConfig{
{
EpochEnable: 44,
Expand Down
1 change: 1 addition & 0 deletions factory/api/apiResolverFactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ func createShardVmContainerFactory(args scQueryElementArgs, argsHook hooks.ArgBl
WasmVMChangeLocker: args.coreComponents.WasmVMChangeLocker(),
ESDTTransferParser: esdtTransferParser,
Hasher: args.coreComponents.Hasher(),
PubKeyConverter: args.coreComponents.AddressPubKeyConverter(),
}

log.Debug("apiResolver: enable epoch for sc deploy", "epoch", args.epochConfig.EnableEpochs.SCDeployEnableEpoch)
Expand Down
6 changes: 4 additions & 2 deletions factory/api/apiResolverFactory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ func TestCreateApiResolver(t *testing.T) {
failingStepsInstance.addressPublicKeyConverterFailingStep = 3
apiResolver, err := api.CreateApiResolver(failingArgs)
require.NotNil(t, err)
require.True(t, strings.Contains(strings.ToLower(err.Error()), "public key converter"))
fmt.Println(err.Error())
mariusmihaic marked this conversation as resolved.
Show resolved Hide resolved
require.True(t, strings.Contains(strings.ToLower(err.Error()), "key converter"))
require.True(t, check.IfNil(apiResolver))
})
t.Run("createBuiltinFuncs fails should error", func(t *testing.T) {
Expand Down Expand Up @@ -275,7 +276,7 @@ func TestCreateApiResolver(t *testing.T) {
failingStepsInstance.addressPublicKeyConverterFailingStep = 10
apiResolver, err := api.CreateApiResolver(failingArgs)
require.NotNil(t, err)
require.True(t, strings.Contains(strings.ToLower(err.Error()), "public key converter"))
require.True(t, strings.Contains(strings.ToLower(err.Error()), "key converter"))
require.True(t, check.IfNil(apiResolver))
})
t.Run("should work", func(t *testing.T) {
Expand Down Expand Up @@ -313,6 +314,7 @@ func createMockSCQueryElementArgs() api.SCQueryElementArgs {
WasmVMVersions: []config.WasmVMVersionByEpoch{
{StartEpoch: 0, Version: "*"},
},
TransferAndExecuteByUserAddresses: []string{"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe3"},
},
},
},
Expand Down
1 change: 1 addition & 0 deletions factory/processing/blockProcessorCreator.go
Original file line number Diff line number Diff line change
Expand Up @@ -1086,6 +1086,7 @@ func (pcf *processComponentsFactory) createVMFactoryShard(
WasmVMChangeLocker: wasmVMChangeLocker,
ESDTTransferParser: esdtTransferParser,
Hasher: pcf.coreData.Hasher(),
PubKeyConverter: pcf.coreData.AddressPubKeyConverter(),
}

return shard.NewVMContainerFactory(argsNewVMFactory)
Expand Down
1 change: 1 addition & 0 deletions genesis/process/genesisBlockCreator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func createMockArgument(
WasmVMVersions: []config.WasmVMVersionByEpoch{
{StartEpoch: 0, Version: "*"},
},
TransferAndExecuteByUserAddresses: []string{"3132333435363738393031323334353637383930313233343536373839303234"},
},
HardForkConfig: config.HardforkConfig{
ImportKeysStorageConfig: config.StorageConfig{
Expand Down
1 change: 1 addition & 0 deletions genesis/process/shardGenesisBlockCreator.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ func createProcessorsForShardGenesisBlock(arg ArgsGenesisBlockCreator, enableEpo
ESDTTransferParser: esdtTransferParser,
BuiltInFunctions: argsHook.BuiltInFunctions,
Hasher: arg.Core.Hasher(),
PubKeyConverter: arg.Core.AddressPubKeyConverter(),
}
vmFactoryImpl, err := shard.NewVMContainerFactory(argsNewVMFactory)
if err != nil {
Expand Down
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ require (
github.com/multiversx/mx-chain-logger-go v1.0.14-0.20240129144507-d00e967c890c
github.com/multiversx/mx-chain-scenario-go v1.4.3-0.20240212160120-cc32d1580157
github.com/multiversx/mx-chain-storage-go v1.0.15-0.20240321150623-3974ec1d6474
github.com/multiversx/mx-chain-vm-common-go v1.5.12-0.20240411132244-adf842b5e09e
github.com/multiversx/mx-chain-vm-go v1.5.28-0.20240328092329-b5f2c7c059eb
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.66-0.20240321152247-79521988c8e6
github.com/multiversx/mx-chain-vm-v1_3-go v1.3.67-0.20240321152532-45da5eabdc38
github.com/multiversx/mx-chain-vm-v1_4-go v1.4.96-0.20240321152756-16110ce9d968
github.com/multiversx/mx-chain-vm-common-go v1.5.12-0.20240424111748-6dfa8aa14813
github.com/multiversx/mx-chain-vm-go v1.5.28-0.20240424134454-27f4efb28f47
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.66-0.20240424112443-1a66307bc44e
github.com/multiversx/mx-chain-vm-v1_3-go v1.3.67-0.20240424112610-ab7b9e5829bd
github.com/multiversx/mx-chain-vm-v1_4-go v1.4.96-0.20240424113019-3a7d2b215137
github.com/pelletier/go-toml v1.9.3
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.14.0
Expand Down
20 changes: 10 additions & 10 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -399,16 +399,16 @@ github.com/multiversx/mx-chain-scenario-go v1.4.3-0.20240212160120-cc32d1580157
github.com/multiversx/mx-chain-scenario-go v1.4.3-0.20240212160120-cc32d1580157/go.mod h1:ndk45i9J9McuCJpTcgiaK4ocd0yhnBBCPrlFwO6GRcs=
github.com/multiversx/mx-chain-storage-go v1.0.15-0.20240321150623-3974ec1d6474 h1:x65Su8ojHwA+NICp9DrSVGLDDcAlW04DafkqCHY1QPE=
github.com/multiversx/mx-chain-storage-go v1.0.15-0.20240321150623-3974ec1d6474/go.mod h1:hnc6H4D5Ge1haRAQ6QHTXhyh+CT2DRiNJ0U0HQYI3DY=
github.com/multiversx/mx-chain-vm-common-go v1.5.12-0.20240411132244-adf842b5e09e h1:SJmm+Lkxdj/eJ4t/CCcvhZCZtg2A1ieVoJV5FJooFKA=
github.com/multiversx/mx-chain-vm-common-go v1.5.12-0.20240411132244-adf842b5e09e/go.mod h1:G6daPJC6bFsvAw45RPMCRi2rP+8LjFxa8G+3alHuJow=
github.com/multiversx/mx-chain-vm-go v1.5.28-0.20240328092329-b5f2c7c059eb h1:0WvWXqzliYS1yKW+6uTxZGMjQd08IQNPzlNNxxyNWHM=
github.com/multiversx/mx-chain-vm-go v1.5.28-0.20240328092329-b5f2c7c059eb/go.mod h1:mZNRILxq51LVqwqE9jMJyDHgmy9W3x7otOGuFjOm82Q=
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.66-0.20240321152247-79521988c8e6 h1:7HqUo9YmpsfN/y9px6RmzREJm5O6ZzP9NqvFSrHTw24=
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.66-0.20240321152247-79521988c8e6/go.mod h1:H2H/zoskiZC0lEokq9qMFVxRkB0RWVDPLjHbG/NrGUU=
github.com/multiversx/mx-chain-vm-v1_3-go v1.3.67-0.20240321152532-45da5eabdc38 h1:SAKjOByxXkZ5Sys5O4IkrrSGCKLoPvD+cCJJEvbev4w=
github.com/multiversx/mx-chain-vm-v1_3-go v1.3.67-0.20240321152532-45da5eabdc38/go.mod h1:3dhvJ5/SgEMKAaIYHAOzo3nmOmJik/DDXaQW21PUno4=
github.com/multiversx/mx-chain-vm-v1_4-go v1.4.96-0.20240321152756-16110ce9d968 h1:14A3e5rqaXXXOFGC0DjOWtGFiVLx20TNghsaja0u4E0=
github.com/multiversx/mx-chain-vm-v1_4-go v1.4.96-0.20240321152756-16110ce9d968/go.mod h1:XJt8jbyLtP1+pPSzQmHwQG45hH/qazz1H+Xk2wasfTs=
github.com/multiversx/mx-chain-vm-common-go v1.5.12-0.20240424111748-6dfa8aa14813 h1:pjknvxvRG1fQ6Dc0ZjFkWBwDLfPn2DbtACIwTBwYIA8=
github.com/multiversx/mx-chain-vm-common-go v1.5.12-0.20240424111748-6dfa8aa14813/go.mod h1:G6daPJC6bFsvAw45RPMCRi2rP+8LjFxa8G+3alHuJow=
github.com/multiversx/mx-chain-vm-go v1.5.28-0.20240424134454-27f4efb28f47 h1:RGW/1czsPJtU10ojsOGWMpWLWENbbL6ruJ7kUZkT0Zo=
github.com/multiversx/mx-chain-vm-go v1.5.28-0.20240424134454-27f4efb28f47/go.mod h1:DyMusfHXRXyVYQmH2umBTZD5gm6p136EJNC6YI2l+kU=
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.66-0.20240424112443-1a66307bc44e h1:Yg5Bx9iuMBpe+MTbL+VTdINlQeqjqDFIAOE4A8sWamc=
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.66-0.20240424112443-1a66307bc44e/go.mod h1:0hoqSWVXkNvg0iYWDpYQcLyCBwz0DPIrTVf3kAtXHwU=
github.com/multiversx/mx-chain-vm-v1_3-go v1.3.67-0.20240424112610-ab7b9e5829bd h1:uM2FFSLvdWT7V8xRCaP01roTINT3rfTXAaiWQ1yFhag=
github.com/multiversx/mx-chain-vm-v1_3-go v1.3.67-0.20240424112610-ab7b9e5829bd/go.mod h1:MgRH/vdAXmXQiRdmN/b7hTxmQfPVFbVDqAHKc6Z3064=
github.com/multiversx/mx-chain-vm-v1_4-go v1.4.96-0.20240424113019-3a7d2b215137 h1:JL0Nn39C6f9mWJ+16xaCbrWZcZ/+TkbBMKmPxf4IVKo=
github.com/multiversx/mx-chain-vm-v1_4-go v1.4.96-0.20240424113019-3a7d2b215137/go.mod h1:3i2JOOE0VYvZE4K9C0VLi8mM/bBrY0dyWu3f9aw8RZI=
github.com/multiversx/mx-components-big-int v1.0.0 h1:Wkr8lSzK2nDqixOrrBa47VNuqdhV1m/aJhaP1EMaiS8=
github.com/multiversx/mx-components-big-int v1.0.0/go.mod h1:maIEMgHlNE2u78JaDD0oLzri+ShgU4okHfzP3LWGdQM=
github.com/multiversx/protobuf v1.3.2 h1:RaNkxvGTGbA0lMcnHAN24qE1G1i+Xs5yHA6MDvQ4mSM=
Expand Down
1 change: 1 addition & 0 deletions integrationTests/multiShard/hardFork/hardFork_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,7 @@ func hardForkImport(
WasmVMVersions: []config.WasmVMVersionByEpoch{
{StartEpoch: 0, Version: "*"},
},
TransferAndExecuteByUserAddresses: []string{"erd1qqqqqqqqqqqqqpgqr46jrxr6r2unaqh75ugd308dwx5vgnhwh47qtvepe3"},
},
HardForkConfig: config.HardforkConfig{
ImportFolder: node.ExportFolder,
Expand Down
2 changes: 1 addition & 1 deletion integrationTests/multiShard/relayedTx/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func CreateGeneralSetupForRelayTxTest() ([]*integrationTests.TestProcessorNode,

integrationTests.DisplayAndStartNodes(nodes)

initialVal := big.NewInt(1000000000)
initialVal := big.NewInt(10000000000)
integrationTests.MintAllNodes(nodes, initialVal)

numPlayers := 5
Expand Down
6 changes: 3 additions & 3 deletions integrationTests/multiShard/relayedTx/relayedTxV2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ func TestRelayedTransactionV2InMultiShardEnvironmentWithSmartContractTX(t *testi
integrationTests.CreateAndSendTransactionWithGasLimit(
nodes[0],
big.NewInt(0),
20000,
2000000,
make([]byte, 32),
[]byte(wasm.CreateDeployTxData(scCode)+"@"+initialSupply),
integrationTests.ChainID,
integrationTests.MinTransactionVersion,
)

transferTokenVMGas := uint64(7200)
transferTokenVMGas := uint64(720000)
transferTokenBaseGas := ownerNode.EconomicsData.ComputeGasLimit(&transaction.Transaction{Data: []byte("transferToken@" + hex.EncodeToString(receiverAddress1) + "@00" + hex.EncodeToString(sendValue.Bytes()))})
transferTokenFullGas := transferTokenBaseGas + transferTokenVMGas

initialTokenSupply := big.NewInt(1000000000)
initialPlusForGas := uint64(1000)
initialPlusForGas := uint64(100000)
for _, player := range players {
integrationTests.CreateAndSendTransactionWithGasLimit(
ownerNode,
Expand Down
14 changes: 7 additions & 7 deletions integrationTests/multiShard/relayedTx/relayedTx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,19 @@ func TestRelayedTransactionInMultiShardEnvironmentWithSmartContractTX(t *testing
integrationTests.CreateAndSendTransactionWithGasLimit(
nodes[0],
big.NewInt(0),
20000,
200000,
make([]byte, 32),
[]byte(wasm.CreateDeployTxData(scCode)+"@"+initialSupply),
integrationTests.ChainID,
integrationTests.MinTransactionVersion,
)

transferTokenVMGas := uint64(7200)
transferTokenVMGas := uint64(720000)
transferTokenBaseGas := ownerNode.EconomicsData.ComputeGasLimit(&transaction.Transaction{Data: []byte("transferToken@" + hex.EncodeToString(receiverAddress1) + "@00" + hex.EncodeToString(sendValue.Bytes()))})
transferTokenFullGas := transferTokenBaseGas + transferTokenVMGas

initialTokenSupply := big.NewInt(1000000000)
initialPlusForGas := uint64(1000)
initialPlusForGas := uint64(100000)
for _, player := range players {
integrationTests.CreateAndSendTransactionWithGasLimit(
ownerNode,
Expand Down Expand Up @@ -285,17 +285,17 @@ func TestRelayedTransactionInMultiShardEnvironmentWithAttestationContract(t *tes
integrationTests.CreateAndSendTransactionWithGasLimit(
nodes[0],
big.NewInt(0),
200000,
2000000,
make([]byte, 32),
[]byte(wasm.CreateDeployTxData(scCode)+"@"+hex.EncodeToString(registerValue.Bytes())+"@"+hex.EncodeToString(relayer.Address)+"@"+"ababab"),
integrationTests.ChainID,
integrationTests.MinTransactionVersion,
)
time.Sleep(time.Second)

registerVMGas := uint64(100000)
savePublicInfoVMGas := uint64(100000)
attestVMGas := uint64(100000)
registerVMGas := uint64(10000000)
savePublicInfoVMGas := uint64(10000000)
attestVMGas := uint64(10000000)

round, nonce = integrationTests.ProposeAndSyncOneBlock(t, nodes, idxProposers, round, nonce)
integrationTests.AddSelfNotarizedHeaderByMetachain(nodes)
Expand Down