Skip to content

Commit

Permalink
Add a parallel compute setting to the setting ID enum. (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmkozh authored Jul 1, 2024
1 parent 09cd5fd commit 619d33e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Stellar-contract-config-setting.x
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ struct ConfigSettingContractParallelComputeV0
// threads used and instead only defines the minimum number
// of physical threads that a tier-1 validator has to support
// in order to not fall out of sync with the network.
int64 ledgerMaxParallelThreads;
uint32 ledgerMaxParallelThreads;
};

// Ledger access settings for contracts.
Expand Down Expand Up @@ -263,7 +263,8 @@ enum ConfigSettingID
CONFIG_SETTING_STATE_ARCHIVAL = 10,
CONFIG_SETTING_CONTRACT_EXECUTION_LANES = 11,
CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW = 12,
CONFIG_SETTING_EVICTION_ITERATOR = 13
CONFIG_SETTING_EVICTION_ITERATOR = 13,
CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0 = 14
};

union ConfigSettingEntry switch (ConfigSettingID configSettingID)
Expand Down Expand Up @@ -296,5 +297,7 @@ case CONFIG_SETTING_BUCKETLIST_SIZE_WINDOW:
uint64 bucketListSizeWindow<>;
case CONFIG_SETTING_EVICTION_ITERATOR:
EvictionIterator evictionIterator;
case CONFIG_SETTING_CONTRACT_PARALLEL_COMPUTE_V0:
ConfigSettingContractParallelComputeV0 contractParallelCompute;
};
}

0 comments on commit 619d33e

Please sign in to comment.