Skip to content

Commit

Permalink
Add execution lanes config (#101)
Browse files Browse the repository at this point in the history
* Add tx limit

* Minor naming tweak
  • Loading branch information
marta-lokhova authored Jun 8, 2023
1 parent 5b1ab56 commit 1d2fd90
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Stellar-contract-config-setting.x
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
%#include "xdr/Stellar-types.h"

namespace stellar {
// General “Soroban execution lane” settings
struct ConfigSettingContractExecutionLanesV0
{
// maximum number of Soroban transactions per ledger
uint32 ledgerMaxTxCount;
};

// "Compute" settings for contracts (instructions and memory).
struct ConfigSettingContractComputeV0
{
Expand Down Expand Up @@ -171,7 +178,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)
Expand All @@ -198,5 +206,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;
};
}

0 comments on commit 1d2fd90

Please sign in to comment.