-
Notifications
You must be signed in to change notification settings - Fork 204
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
Mx 15702 sovereign enable epochs handler #6626
Changes from all commits
06ec481
616fb58
cdf3af3
25e723d
1ecbf3a
39dd138
ae8c842
24f419a
a0726b2
dfd199d
35b4a1b
2987d1d
8277d45
08aaac2
392e646
3ecac02
5c8327f
246363d
7a8922f
368e17a
caba123
5f9042c
b8fd2f8
bcbce0e
739d48e
d2aac11
2cc653b
4a767eb
2c0776e
f5dc173
a3798d0
d7c0065
a0518b0
9763762
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
BuiltInFunctionsEnableEpoch = 0 | ||
|
||
# RelayedTransactionsEnableEpoch represents the epoch when the relayed transactions will be enabled | ||
RelayedTransactionsEnableEpoch = 1 | ||
RelayedTransactionsEnableEpoch = 0 | ||
|
||
# PenalizedTooMuchGasEnableEpoch represents the epoch when the penalization for using too much gas will be enabled | ||
PenalizedTooMuchGasEnableEpoch = 0 | ||
|
@@ -19,35 +19,35 @@ | |
|
||
# SwitchHysteresisForMinNodesEnableEpoch represents the epoch when the system smart contract changes its config to consider | ||
# also (minimum) hysteresis nodes for the minimum number of nodes | ||
SwitchHysteresisForMinNodesEnableEpoch = 1 | ||
SwitchHysteresisForMinNodesEnableEpoch = 0 | ||
|
||
# TransactionSignedWithTxHashEnableEpoch represents the epoch when the node will also accept transactions that are | ||
# signed with the hash of transaction | ||
TransactionSignedWithTxHashEnableEpoch = 0 | ||
|
||
# MetaProtectionEnableEpoch represents the epoch when the transactions to the metachain are checked to have enough gas | ||
MetaProtectionEnableEpoch = 1 | ||
MetaProtectionEnableEpoch = 0 | ||
|
||
# AheadOfTimeGasUsageEnableEpoch represents the epoch when the cost of smart contract prepare changes from compiler per byte to ahead of time prepare per byte | ||
AheadOfTimeGasUsageEnableEpoch = 1 | ||
AheadOfTimeGasUsageEnableEpoch = 0 | ||
|
||
# GasPriceModifierEnableEpoch represents the epoch when the gas price modifier in fee computation is enabled | ||
GasPriceModifierEnableEpoch = 1 | ||
GasPriceModifierEnableEpoch = 0 | ||
|
||
# RepairCallbackEnableEpoch represents the epoch when the callback repair is activated for scrs | ||
RepairCallbackEnableEpoch = 1 | ||
RepairCallbackEnableEpoch = 0 | ||
|
||
# BlockGasAndFeesReCheckEnableEpoch represents the epoch when gas and fees used in each created or processed block are re-checked | ||
BlockGasAndFeesReCheckEnableEpoch = 1 | ||
BlockGasAndFeesReCheckEnableEpoch = 0 | ||
|
||
# BalanceWaitingListsEnableEpoch represents the epoch when the shard waiting lists are balanced at the start of an epoch | ||
BalanceWaitingListsEnableEpoch = 1 | ||
BalanceWaitingListsEnableEpoch = 0 | ||
|
||
# ReturnDataToLastTransferEnableEpoch represents the epoch when returned data is added to last output transfer for callbacks | ||
ReturnDataToLastTransferEnableEpoch = 1 | ||
ReturnDataToLastTransferEnableEpoch = 0 | ||
|
||
# SenderInOutTransferEnableEpoch represents the epoch when the feature of having different senders in output transfer is enabled | ||
SenderInOutTransferEnableEpoch = 1 | ||
SenderInOutTransferEnableEpoch = 0 | ||
|
||
# StakeEnableEpoch represents the epoch when staking is enabled | ||
StakeEnableEpoch = 0 | ||
|
@@ -56,7 +56,7 @@ | |
StakingV2EnableEpoch = 0 | ||
|
||
# DoubleKeyProtectionEnableEpoch represents the epoch when the double key protection will be enabled | ||
DoubleKeyProtectionEnableEpoch = 1 | ||
DoubleKeyProtectionEnableEpoch = 0 | ||
|
||
# ESDTEnableEpoch represents the epoch when ESDT is enabled | ||
ESDTEnableEpoch = 0 | ||
|
@@ -70,33 +70,32 @@ | |
|
||
# DelegationSmartContractEnableEpoch represents the epoch when delegation smart contract is enabled | ||
# epoch should not be 0 | ||
DelegationSmartContractEnableEpoch = 1 | ||
DelegationSmartContractEnableEpoch = 0 | ||
|
||
# TODO: MX-15702: Sovereign enable epoch handler should have all these type of flags always disabled | ||
# CorrectLastUnjailedEnableEpoch represents the epoch when the fix regaring the last unjailed node should apply | ||
CorrectLastUnjailedEnableEpoch = 1000000 | ||
CorrectLastUnjailedEnableEpoch = 0 | ||
|
||
# RelayedTransactionsV2EnableEpoch represents the epoch when the relayed transactions V2 will be enabled | ||
RelayedTransactionsV2EnableEpoch = 1 | ||
RelayedTransactionsV2EnableEpoch = 0 | ||
|
||
# UnbondTokensV2EnableEpoch represents the epoch when the new implementation of the unbond tokens function is available | ||
UnbondTokensV2EnableEpoch = 1 | ||
UnbondTokensV2EnableEpoch = 0 | ||
|
||
# SaveJailedAlwaysEnableEpoch represents the epoch when saving jailed status at end of epoch will happen in all cases | ||
SaveJailedAlwaysEnableEpoch = 1 | ||
SaveJailedAlwaysEnableEpoch = 0 | ||
|
||
# ReDelegateBelowMinCheckEnableEpoch represents the epoch when the check for the re-delegated value will be enabled | ||
ReDelegateBelowMinCheckEnableEpoch = 1 | ||
ReDelegateBelowMinCheckEnableEpoch = 0 | ||
|
||
# ValidatorToDelegationEnableEpoch represents the epoch when the validator-to-delegation feature will be enabled | ||
ValidatorToDelegationEnableEpoch = 1 | ||
ValidatorToDelegationEnableEpoch = 0 | ||
|
||
# WaitingListFixEnableEpoch represents the epoch when the 6 epoch waiting list fix is enabled | ||
WaitingListFixEnableEpoch = 1000000 | ||
WaitingListFixEnableEpoch = 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This flag I think should always be disabled or never used. I think in the original There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Delete this epoch. That fix was never implemented and we do not have waiting list anymore. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
# IncrementSCRNonceInMultiTransferEnableEpoch represents the epoch when the fix for preventing the generation of the same SCRs | ||
# is enabled. The fix is done by adding an extra increment. | ||
IncrementSCRNonceInMultiTransferEnableEpoch = 1 | ||
IncrementSCRNonceInMultiTransferEnableEpoch = 0 | ||
|
||
# ESDTMultiTransferEnableEpoch represents the epoch when esdt multitransfer built in function is enabled | ||
ESDTMultiTransferEnableEpoch = 0 | ||
|
@@ -107,17 +106,14 @@ | |
# ESDTTransferRoleEnableEpoch represents the epoch when esdt transfer role set is enabled | ||
ESDTTransferRoleEnableEpoch = 0 | ||
|
||
# BuiltInFunctionOnMetaEnableEpoch represents the epoch when built in function processing on metachain is enabled | ||
BuiltInFunctionOnMetaEnableEpoch = 1000000 | ||
|
||
# ComputeRewardCheckpointEnableEpoch represents the epoch when compute rewards checkpoint epoch is enabled | ||
ComputeRewardCheckpointEnableEpoch = 1 | ||
ComputeRewardCheckpointEnableEpoch = 0 | ||
|
||
# SCRSizeInvariantCheckEnableEpoch represents the epoch when the scr size invariant check is enabled | ||
SCRSizeInvariantCheckEnableEpoch = 1 | ||
SCRSizeInvariantCheckEnableEpoch = 0 | ||
|
||
# BackwardCompSaveKeyValueEnableEpoch represents the epoch when the backward compatibility for save key value error is enabled | ||
BackwardCompSaveKeyValueEnableEpoch = 1 | ||
BackwardCompSaveKeyValueEnableEpoch = 0 | ||
|
||
# ESDTNFTCreateOnMultiShardEnableEpoch represents the epoch when esdt nft creation is enabled on multiple shards | ||
ESDTNFTCreateOnMultiShardEnableEpoch = 0 | ||
|
@@ -126,37 +122,37 @@ | |
MetaESDTSetEnableEpoch = 0 | ||
|
||
# AddTokensToDelegationEnableEpoch represents the epoch when adding tokens to delegation is enabled for whitelisted address | ||
AddTokensToDelegationEnableEpoch = 1 | ||
AddTokensToDelegationEnableEpoch = 0 | ||
|
||
# MultiESDTTransferFixOnCallBackOnEnableEpoch represents the epoch when multi esdt transfer on callback fix is enabled | ||
MultiESDTTransferFixOnCallBackOnEnableEpoch = 0 | ||
|
||
# OptimizeGasUsedInCrossMiniBlocksEnableEpoch represents the epoch when gas used in cross shard mini blocks will be optimized | ||
OptimizeGasUsedInCrossMiniBlocksEnableEpoch = 1 | ||
OptimizeGasUsedInCrossMiniBlocksEnableEpoch = 0 | ||
|
||
# CorrectFirstQueuedEpoch represents the epoch when the backward compatibility for setting the first queued node is enabled | ||
CorrectFirstQueuedEpoch = 1 | ||
CorrectFirstQueuedEpoch = 0 | ||
|
||
# DeleteDelegatorAfterClaimRewardsEnableEpoch represents the epoch when the delegators data is deleted for delegators that have to claim rewards after they withdraw all funds | ||
DeleteDelegatorAfterClaimRewardsEnableEpoch = 1 | ||
DeleteDelegatorAfterClaimRewardsEnableEpoch = 0 | ||
|
||
# FixOOGReturnCodeEnableEpoch represents the epoch when the backward compatibility returning out of gas error is enabled | ||
FixOOGReturnCodeEnableEpoch = 1 | ||
FixOOGReturnCodeEnableEpoch = 0 | ||
|
||
# RemoveNonUpdatedStorageEnableEpoch represents the epoch when the backward compatibility for removing non updated storage is enabled | ||
RemoveNonUpdatedStorageEnableEpoch = 1 | ||
RemoveNonUpdatedStorageEnableEpoch = 0 | ||
|
||
# OptimizeNFTStoreEnableEpoch represents the epoch when optimizations on NFT metadata store and send are enabled | ||
OptimizeNFTStoreEnableEpoch = 0 | ||
|
||
# CreateNFTThroughExecByCallerEnableEpoch represents the epoch when nft creation through execution on destination by caller is enabled | ||
CreateNFTThroughExecByCallerEnableEpoch = 1 | ||
CreateNFTThroughExecByCallerEnableEpoch = 0 | ||
|
||
# StopDecreasingValidatorRatingWhenStuckEnableEpoch represents the epoch when we should stop decreasing validator's rating if, for instance, a shard gets stuck | ||
StopDecreasingValidatorRatingWhenStuckEnableEpoch = 1 | ||
StopDecreasingValidatorRatingWhenStuckEnableEpoch = 0 | ||
|
||
# FrontRunningProtectionEnableEpoch represents the epoch when the first version of protection against front running is enabled | ||
FrontRunningProtectionEnableEpoch = 1 | ||
FrontRunningProtectionEnableEpoch = 0 | ||
|
||
# IsPayableBySCEnableEpoch represents the epoch when a new flag isPayable by SC is enabled | ||
IsPayableBySCEnableEpoch = 0 | ||
|
@@ -168,7 +164,7 @@ | |
StorageAPICostOptimizationEnableEpoch = 0 | ||
|
||
# TransformToMultiShardCreateEnableEpoch represents the epoch when the new function on esdt system sc is enabled to transfer create role into multishard | ||
TransformToMultiShardCreateEnableEpoch = 1 | ||
TransformToMultiShardCreateEnableEpoch = 0 | ||
|
||
# ESDTRegisterAndSetAllRolesEnableEpoch represents the epoch when new function to register tickerID and set all roles is enabled | ||
ESDTRegisterAndSetAllRolesEnableEpoch = 0 | ||
|
@@ -177,71 +173,71 @@ | |
ScheduledMiniBlocksEnableEpoch = 0 | ||
|
||
# CorrectJailedNotUnstakedEpoch represents the epoch when the jailed validators will also be unstaked if the queue is empty | ||
CorrectJailedNotUnstakedEmptyQueueEpoch = 1 | ||
CorrectJailedNotUnstakedEmptyQueueEpoch = 0 | ||
|
||
# DoNotReturnOldBlockInBlockchainHookEnableEpoch represents the epoch when the fetch old block operation is | ||
# disabled in the blockchain hook component | ||
DoNotReturnOldBlockInBlockchainHookEnableEpoch = 1 | ||
DoNotReturnOldBlockInBlockchainHookEnableEpoch = 0 | ||
|
||
# AddFailedRelayedTxToInvalidMBsDisableEpoch represents the epoch when adding the failed relayed txs to invalid miniblocks is disabled | ||
AddFailedRelayedTxToInvalidMBsDisableEpoch = 1 | ||
AddFailedRelayedTxToInvalidMBsDisableEpoch = 0 | ||
|
||
# SCRSizeInvariantOnBuiltInResultEnableEpoch represents the epoch when scr size invariant on built in result is enabled | ||
SCRSizeInvariantOnBuiltInResultEnableEpoch = 1 | ||
SCRSizeInvariantOnBuiltInResultEnableEpoch = 0 | ||
|
||
# CheckCorrectTokenIDForTransferRoleEnableEpoch represents the epoch when the correct token ID check is applied for transfer role verification | ||
CheckCorrectTokenIDForTransferRoleEnableEpoch = 1 | ||
CheckCorrectTokenIDForTransferRoleEnableEpoch = 0 | ||
|
||
# DisableExecByCallerEnableEpoch represents the epoch when the check on value is disabled on exec by caller | ||
DisableExecByCallerEnableEpoch = 1 | ||
DisableExecByCallerEnableEpoch = 0 | ||
|
||
# RefactorContextEnableEpoch represents the epoch when refactoring/simplifying is enabled in contexts | ||
RefactorContextEnableEpoch = 1 | ||
RefactorContextEnableEpoch = 0 | ||
|
||
# FailExecutionOnEveryAPIErrorEnableEpoch represent the epoch when new protection in VM is enabled to fail all wrong API calls | ||
FailExecutionOnEveryAPIErrorEnableEpoch = 1 | ||
FailExecutionOnEveryAPIErrorEnableEpoch = 0 | ||
|
||
# ManagedCryptoAPIsEnableEpoch represents the epoch when new managed crypto APIs are enabled in the wasm VM | ||
ManagedCryptoAPIsEnableEpoch = 1 | ||
ManagedCryptoAPIsEnableEpoch = 0 | ||
|
||
# CheckFunctionArgumentEnableEpoch represents the epoch when the extra argument check is enabled in vm-common | ||
CheckFunctionArgumentEnableEpoch = 1 | ||
CheckFunctionArgumentEnableEpoch = 0 | ||
|
||
# CheckExecuteOnReadOnlyEnableEpoch represents the epoch when the extra checks are enabled for execution on read only | ||
CheckExecuteOnReadOnlyEnableEpoch = 1 | ||
CheckExecuteOnReadOnlyEnableEpoch = 0 | ||
|
||
# ESDTMetadataContinuousCleanupEnableEpoch represents the epoch when esdt metadata is automatically deleted according to inshard liquidity | ||
ESDTMetadataContinuousCleanupEnableEpoch = 0 | ||
|
||
# MiniBlockPartialExecutionEnableEpoch represents the epoch when mini block partial execution will be enabled | ||
MiniBlockPartialExecutionEnableEpoch = 1 | ||
MiniBlockPartialExecutionEnableEpoch = 0 | ||
|
||
# FixAsyncCallBackArgsListEnableEpoch represents the epoch when the async callback arguments lists fix will be enabled | ||
FixAsyncCallBackArgsListEnableEpoch = 1 | ||
FixAsyncCallBackArgsListEnableEpoch = 0 | ||
|
||
# FixOldTokenLiquidityEnableEpoch represents the epoch when the fix for old token liquidity is enabled | ||
FixOldTokenLiquidityEnableEpoch = 0 | ||
|
||
# RuntimeMemStoreLimitEnableEpoch represents the epoch when the condition for Runtime MemStore is enabled | ||
RuntimeMemStoreLimitEnableEpoch = 1 | ||
RuntimeMemStoreLimitEnableEpoch = 0 | ||
|
||
# SetSenderInEeiOutputTransferEnableEpoch represents the epoch when setting the sender in eei output transfers will be enabled | ||
SetSenderInEeiOutputTransferEnableEpoch = 1 | ||
SetSenderInEeiOutputTransferEnableEpoch = 0 | ||
|
||
# RefactorPeersMiniBlocksEnableEpoch represents the epoch when refactor of the peers mini blocks will be enabled | ||
RefactorPeersMiniBlocksEnableEpoch = 1 | ||
RefactorPeersMiniBlocksEnableEpoch = 0 | ||
|
||
# MaxBlockchainHookCountersEnableEpoch represents the epoch when the max blockchainhook counters are enabled | ||
MaxBlockchainHookCountersEnableEpoch = 1 | ||
MaxBlockchainHookCountersEnableEpoch = 0 | ||
|
||
# WipeSingleNFTLiquidityDecreaseEnableEpoch represents the epoch when the system account liquidity is decreased for wipeSingleNFT as well | ||
WipeSingleNFTLiquidityDecreaseEnableEpoch = 1 | ||
WipeSingleNFTLiquidityDecreaseEnableEpoch = 0 | ||
|
||
# AlwaysSaveTokenMetaDataEnableEpoch represents the epoch when the token metadata is always saved | ||
AlwaysSaveTokenMetaDataEnableEpoch = 0 | ||
|
||
# RuntimeCodeSizeFixEnableEpoch represents the epoch when the code size fix in the VM is enabled | ||
RuntimeCodeSizeFixEnableEpoch = 2 | ||
RuntimeCodeSizeFixEnableEpoch = 0 | ||
|
||
# BLSMultiSignerEnableEpoch represents the activation epoch for different types of BLS multi-signers | ||
BLSMultiSignerEnableEpoch = [ | ||
|
@@ -256,5 +252,9 @@ | |
[GasSchedule] | ||
# GasScheduleByEpochs holds the configuration for the gas schedule that will be applied from specific epochs | ||
GasScheduleByEpochs = [ | ||
{ StartEpoch = 0, FileName = "gasScheduleV7.toml" }, | ||
{ StartEpoch = 0, FileName = "gasScheduleV8.toml" }, | ||
] | ||
|
||
[SovereignEnableEpochs] | ||
|
||
[SovereignChainSpecificEnableEpochs] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
goimport.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be ok, it's split in 3 categories.