From 7074bec5f740a8eb0ad92bf105892f27102a7a54 Mon Sep 17 00:00:00 2001 From: marta-lokhova Date: Wed, 7 Jun 2023 15:30:02 -0700 Subject: [PATCH 1/2] Add tx limit --- Stellar-contract-config-setting.x | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Stellar-contract-config-setting.x b/Stellar-contract-config-setting.x index db8a462..e90b28e 100644 --- a/Stellar-contract-config-setting.x +++ b/Stellar-contract-config-setting.x @@ -1,6 +1,13 @@ %#include "xdr/Stellar-types.h" namespace stellar { +// General “smart contract execution lane” settings +struct ConfigSettingContractExecutionLanesV0 +{ + // maximum number of “smart” transactions per ledger + uint32 ledgerMaxTxCount; +}; + // "Compute" settings for contracts (instructions and memory). struct ConfigSettingContractComputeV0 { @@ -170,7 +177,8 @@ enum ConfigSettingID CONFIG_SETTING_CONTRACT_COST_PARAMS_MEMORY_BYTES = 7, CONFIG_SETTING_CONTRACT_DATA_KEY_SIZE_BYTES = 8, CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES = 9, - CONFIG_SETTING_STATE_EXPIRATION = 10 + CONFIG_SETTING_STATE_EXPIRATION = 10, + CONFIG_SETTING_CONTRACT_EXECUTION_LANES = 11 }; union ConfigSettingEntry switch (ConfigSettingID configSettingID) @@ -197,5 +205,7 @@ case CONFIG_SETTING_CONTRACT_DATA_ENTRY_SIZE_BYTES: uint32 contractDataEntrySizeBytes; case CONFIG_SETTING_STATE_EXPIRATION: StateExpirationSettings stateExpirationSettings; +case CONFIG_SETTING_CONTRACT_EXECUTION_LANES: + ConfigSettingContractExecutionLanesV0 contractExecutionLanes; }; } \ No newline at end of file From fb26cc36bf1e21363d1084269d89db951678fcae Mon Sep 17 00:00:00 2001 From: marta-lokhova Date: Thu, 8 Jun 2023 09:35:00 -0700 Subject: [PATCH 2/2] Minor naming tweak --- Stellar-contract-config-setting.x | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Stellar-contract-config-setting.x b/Stellar-contract-config-setting.x index e90b28e..9ef61ef 100644 --- a/Stellar-contract-config-setting.x +++ b/Stellar-contract-config-setting.x @@ -1,10 +1,10 @@ %#include "xdr/Stellar-types.h" namespace stellar { -// General “smart contract execution lane” settings +// General “Soroban execution lane” settings struct ConfigSettingContractExecutionLanesV0 { - // maximum number of “smart” transactions per ledger + // maximum number of Soroban transactions per ledger uint32 ledgerMaxTxCount; };