Skip to content

Commit fc997c4

Browse files
Merge pull request #5872 from multiversx/MX-15047
MX-15047: add gasUsage for changeConfig
2 parents 2e55c60 + 3bd015c commit fc997c4

File tree

13 files changed

+54
-3
lines changed

13 files changed

+54
-3
lines changed

cmd/node/config/gasSchedules/gasScheduleV1.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
DelegateVote = 1000000
3838
RevokeVote = 500000
3939
CloseProposal = 1000000
40+
ClaimAccumulatedFees = 1000000
41+
ChangeConfig = 50000000
4042
DelegationOps = 1000000
4143
UnstakeTokens = 5000000
4244
UnbondTokens = 5000000

cmd/node/config/gasSchedules/gasScheduleV2.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
DelegateVote = 1000000
3838
RevokeVote = 500000
3939
CloseProposal = 1000000
40+
ClaimAccumulatedFees = 1000000
41+
ChangeConfig = 50000000
4042
DelegationOps = 1000000
4143
UnstakeTokens = 5000000
4244
UnbondTokens = 5000000

cmd/node/config/gasSchedules/gasScheduleV3.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
DelegateVote = 50000000
4141
RevokeVote = 50000000
4242
CloseProposal = 50000000
43+
ClaimAccumulatedFees = 1000000
44+
ChangeConfig = 50000000
4345
GetAllNodeStates = 20000000
4446
UnstakeTokens = 5000000
4547
UnbondTokens = 5000000

cmd/node/config/gasSchedules/gasScheduleV4.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
DelegateVote = 50000000
4141
RevokeVote = 50000000
4242
CloseProposal = 50000000
43+
ClaimAccumulatedFees = 1000000
44+
ChangeConfig = 50000000
4345
GetAllNodeStates = 20000000
4446
UnstakeTokens = 5000000
4547
UnbondTokens = 5000000

cmd/node/config/gasSchedules/gasScheduleV5.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
DelegateVote = 50000000
4141
RevokeVote = 50000000
4242
CloseProposal = 50000000
43+
ClaimAccumulatedFees = 1000000
44+
ChangeConfig = 50000000
4345
GetAllNodeStates = 20000000
4446
UnstakeTokens = 5000000
4547
UnbondTokens = 5000000

cmd/node/config/gasSchedules/gasScheduleV6.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
DelegateVote = 50000000
4141
RevokeVote = 50000000
4242
CloseProposal = 50000000
43+
ClaimAccumulatedFees = 1000000
44+
ChangeConfig = 50000000
4345
GetAllNodeStates = 20000000
4446
UnstakeTokens = 5000000
4547
UnbondTokens = 5000000

cmd/node/config/gasSchedules/gasScheduleV7.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
DelegateVote = 50000000
4242
RevokeVote = 50000000
4343
CloseProposal = 50000000
44+
ClaimAccumulatedFees = 1000000
45+
ChangeConfig = 50000000
4446
GetAllNodeStates = 20000000
4547
UnstakeTokens = 5000000
4648
UnbondTokens = 5000000

process/factory/metachain/vmContainerFactory_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,8 @@ func FillGasMapMetaChainSystemSCsCosts(value uint64) map[string]uint64 {
424424
gasMap["DelegateVote"] = value
425425
gasMap["RevokeVote"] = value
426426
gasMap["CloseProposal"] = value
427+
gasMap["ClaimAccumulatedFees"] = value
428+
gasMap["ChangeConfig"] = value
427429
gasMap["DelegationOps"] = value
428430
gasMap["UnStakeTokens"] = value
429431
gasMap["UnBondTokens"] = value

testscommon/components/components.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,8 @@ func FillGasMapMetaChainSystemSCsCosts(value uint64) map[string]uint64 {
820820
gasMap["DelegateVote"] = value
821821
gasMap["RevokeVote"] = value
822822
gasMap["CloseProposal"] = value
823+
gasMap["ClaimAccumulatedFees"] = value
824+
gasMap["ChangeConfig"] = value
823825
gasMap["DelegationOps"] = value
824826
gasMap["UnStakeTokens"] = value
825827
gasMap["UnBondTokens"] = value

vm/gasCost.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ type MetaChainSystemSCsCost struct {
2828
DelegateVote uint64
2929
RevokeVote uint64
3030
CloseProposal uint64
31+
ClaimAccumulatedFees uint64
32+
ChangeConfig uint64
3133
DelegationOps uint64
3234
UnStakeTokens uint64
3335
UnBondTokens uint64

0 commit comments

Comments
 (0)