Skip to content

Commit

Permalink
Merge pull request #5831 from multiversx/update-rc-sirius-patch-2023.…
Browse files Browse the repository at this point in the history
…01.12

Update rc sirius patch 2023.01.12
  • Loading branch information
iulianpascalau authored Jan 15, 2024
2 parents 8d177e1 + 6622473 commit 29ffc47
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 27 deletions.
10 changes: 4 additions & 6 deletions cmd/node/config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -694,19 +694,17 @@
TimeOutForSCExecutionInMilliseconds = 10000 # 10 seconds = 10000 milliseconds
WasmerSIGSEGVPassthrough = false # must be false for release
WasmVMVersions = [
{ StartEpoch = 0, Version = "v1.3" },
{ StartEpoch = 1, Version = "v1.4" },
{ StartEpoch = 3, Version = "v1.5" }, # TODO: set also the RoundActivations.DisableAsyncCallV1 accordingly
{ StartEpoch = 0, Version = "v1.4" },
{ StartEpoch = 1, Version = "v1.5" }, # TODO: set also the RoundActivations.DisableAsyncCallV1 accordingly
]

[VirtualMachine.Querying]
NumConcurrentVMs = 1
TimeOutForSCExecutionInMilliseconds = 10000 # 10 seconds = 10000 milliseconds
WasmerSIGSEGVPassthrough = false # must be false for release
WasmVMVersions = [
{ StartEpoch = 0, Version = "v1.3" },
{ StartEpoch = 1, Version = "v1.4" },
{ StartEpoch = 3, Version = "v1.5" }, # TODO: set also the RoundActivations.DisableAsyncCallV1 accordingly
{ StartEpoch = 0, Version = "v1.4" },
{ StartEpoch = 1, Version = "v1.5" }, # TODO: set also the RoundActivations.DisableAsyncCallV1 accordingly
]

[VirtualMachine.GasConfig]
Expand Down
29 changes: 14 additions & 15 deletions cmd/node/config/enableEpochs.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
ESDTEnableEpoch = 1

# GovernanceEnableEpoch represents the epoch when governance is enabled
GovernanceEnableEpoch = 5
GovernanceEnableEpoch = 1

# DelegationManagerEnableEpoch represents the epoch when the delegation manager is enabled
# epoch should not be 0
Expand Down Expand Up @@ -252,40 +252,40 @@
DeterministicSortOnValidatorsInfoEnableEpoch = 1

# SCProcessorV2EnableEpoch represents the epoch when SC processor V2 will be used
SCProcessorV2EnableEpoch = 3
SCProcessorV2EnableEpoch = 1

# AutoBalanceDataTriesEnableEpoch represents the epoch when the data tries are automatically balanced by inserting at the hashed key instead of the normal key
AutoBalanceDataTriesEnableEpoch = 3
AutoBalanceDataTriesEnableEpoch = 1

# KeepExecOrderOnCreatedSCRsEnableEpoch represents the epoch when the execution order of created SCRs is ensured
KeepExecOrderOnCreatedSCRsEnableEpoch = 3
KeepExecOrderOnCreatedSCRsEnableEpoch = 1

# MultiClaimOnDelegationEnableEpoch represents the epoch when the multi claim on delegation is enabled
MultiClaimOnDelegationEnableEpoch = 3
MultiClaimOnDelegationEnableEpoch = 1

# ChangeUsernameEnableEpoch represents the epoch when changing username is enabled
ChangeUsernameEnableEpoch = 3
ChangeUsernameEnableEpoch = 4

# ConsistentTokensValuesLengthCheckEnableEpoch represents the epoch when the consistent tokens values length check is enabled
ConsistentTokensValuesLengthCheckEnableEpoch = 3
ConsistentTokensValuesLengthCheckEnableEpoch = 1

# FixDelegationChangeOwnerOnAccountEnableEpoch represents the epoch when the fix for the delegation system smart contract is enabled
FixDelegationChangeOwnerOnAccountEnableEpoch = 3
FixDelegationChangeOwnerOnAccountEnableEpoch = 1

# DynamicGasCostForDataTrieStorageLoadEnableEpoch represents the epoch when dynamic gas cost for data trie storage load will be enabled
DynamicGasCostForDataTrieStorageLoadEnableEpoch = 3
DynamicGasCostForDataTrieStorageLoadEnableEpoch = 1

# ScToScLogEventEnableEpoch represents the epoch when the sc to sc log event feature is enabled
ScToScLogEventEnableEpoch = 3
ScToScLogEventEnableEpoch = 1

# NFTStopCreateEnableEpoch represents the epoch when NFT stop create feature is enabled
NFTStopCreateEnableEpoch = 3
NFTStopCreateEnableEpoch = 1

# ChangeOwnerAddressCrossShardThroughSCEnableEpoch represents the epoch when the change owner address built in function will work also through a smart contract call cross shard
ChangeOwnerAddressCrossShardThroughSCEnableEpoch = 3
ChangeOwnerAddressCrossShardThroughSCEnableEpoch = 1

# FixGasRemainingForSaveKeyValueBuiltinFunctionEnableEpoch represents the epoch when the fix for the remaining gas in the SaveKeyValue builtin function is enabled
FixGasRemainingForSaveKeyValueBuiltinFunctionEnableEpoch = 3
FixGasRemainingForSaveKeyValueBuiltinFunctionEnableEpoch = 1

# BLSMultiSignerEnableEpoch represents the activation epoch for different types of BLS multi-signers
BLSMultiSignerEnableEpoch = [
Expand All @@ -302,6 +302,5 @@
[GasSchedule]
# GasScheduleByEpochs holds the configuration for the gas schedule that will be applied from specific epochs
GasScheduleByEpochs = [
{ StartEpoch = 0, FileName = "gasScheduleV1.toml" },
{ StartEpoch = 1, FileName = "gasScheduleV7.toml" },
{ StartEpoch = 0, FileName = "gasScheduleV7.toml" },
]
2 changes: 1 addition & 1 deletion cmd/node/config/enableRounds.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
[RoundActivations]
[RoundActivations.DisableAsyncCallV1]
Options = []
Round = "500"
Round = "100"
Binary file modified cmd/node/config/genesisContracts/dns.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion cmd/node/config/genesisSmartContracts.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"owner": "erd188anxz35atlef7cucszypmvx88lhz4m7a7t7lhcwt6sfphpsqlkswfhcx2",
"filename": "./config/genesisContracts/dns.wasm",
"vm-type": "0500",
"init-parameters": "056bc75e2d63100000",
"init-parameters": "00",
"type": "dns",
"version": "0.2.*"
}
Expand Down
3 changes: 2 additions & 1 deletion consensus/spos/bls/subroundBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func checkNewSubroundBlockParams(

// doBlockJob method does the job of the subround Block
func (sr *subroundBlock) doBlockJob(ctx context.Context) bool {
if !sr.IsSelfLeaderInCurrentRound() && !sr.IsMultiKeyLeaderInCurrentRound() { // is NOT self leader in this round?
isSelfLeader := sr.IsSelfLeaderInCurrentRound() && sr.ShouldConsiderSelfKeyInConsensus()
if !isSelfLeader && !sr.IsMultiKeyLeaderInCurrentRound() { // is NOT self leader in this round?
return false
}

Expand Down
2 changes: 2 additions & 0 deletions consensus/spos/bls/subroundStartRound.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ func (sr *subroundStartRound) initCurrentRound() bool {
sr.ConsensusGroup(),
sr.RoundHandler().Index(),
)
// we should not return here, the multikey redundancy system relies on it
// the NodeRedundancyHandler "thinks" it is in redundancy mode even if we use the multikey redundancy system
}

leader, err := sr.GetLeader()
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ require (
github.com/multiversx/mx-chain-scenario-go v1.2.1
github.com/multiversx/mx-chain-storage-go v1.0.14
github.com/multiversx/mx-chain-vm-common-go v1.5.9
github.com/multiversx/mx-chain-vm-go v1.5.22
github.com/multiversx/mx-chain-vm-go v1.5.23
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.64
github.com/multiversx/mx-chain-vm-v1_3-go v1.3.65
github.com/multiversx/mx-chain-vm-v1_4-go v1.4.92
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,8 @@ github.com/multiversx/mx-chain-storage-go v1.0.14 h1:h0acoqPS3FKJ4S3cKBEriTU0Oab
github.com/multiversx/mx-chain-storage-go v1.0.14/go.mod h1:sJ2q49tgjxNpMpsHysjABqCAB0FLBmDblbjBkQ8XfmA=
github.com/multiversx/mx-chain-vm-common-go v1.5.9 h1:PnGimbMScV5WXFjumzAmcAcnWrw5e9PQABuIcKKUgZw=
github.com/multiversx/mx-chain-vm-common-go v1.5.9/go.mod h1:sqkKMCnwkWl8DURdb9q7pctK8IANghdHY1KJLE0ox2c=
github.com/multiversx/mx-chain-vm-go v1.5.22 h1:MDMMMIu67CAyohnIBuizbFQUJJSzNgXiLKww99j1zyA=
github.com/multiversx/mx-chain-vm-go v1.5.22/go.mod h1:T03t+in5jqeTuFZKDt2wH/Sl9MSRczvWhmG+tQEIfec=
github.com/multiversx/mx-chain-vm-go v1.5.23 h1:FNkEstebRtQWQNlyQbR2yGSpgGTpiwCMnl4MYVYEy2Q=
github.com/multiversx/mx-chain-vm-go v1.5.23/go.mod h1:T03t+in5jqeTuFZKDt2wH/Sl9MSRczvWhmG+tQEIfec=
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.64 h1:3BEpSxEQibMMi4LXBjpo2y5vUa1LS7olDC2eDkmUfFQ=
github.com/multiversx/mx-chain-vm-v1_2-go v1.2.64/go.mod h1:MUO2E4aEIu3siDkvjraO/WaBh/FxVeQyPWfsrZE+MTU=
github.com/multiversx/mx-chain-vm-v1_3-go v1.3.65 h1:H0Duuoz6lR6KapqLqMspWTojaVtQRiLA5lIm6XV9H04=
Expand Down

0 comments on commit 29ffc47

Please sign in to comment.