From d828fa0da0276c86dd4dc195f82fa8d6a0f12147 Mon Sep 17 00:00:00 2001 From: Jay Geng Date: Fri, 28 Apr 2023 13:49:16 -0400 Subject: [PATCH] Change cost param type to int64 --- Stellar-contract-config-setting.x | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Stellar-contract-config-setting.x b/Stellar-contract-config-setting.x index 82eb8ea..0c52c8c 100644 --- a/Stellar-contract-config-setting.x +++ b/Stellar-contract-config-setting.x @@ -129,13 +129,14 @@ enum ContractCostType { }; struct ContractCostParamEntry { - int32 constTerm; - int32 linearTerm; + int64 constTerm; + int64 linearTerm; // use `ext` to add more terms (e.g. higher order polynomials) in the future ExtensionPoint ext; }; -const CONTRACT_COST_COUNT_LIMIT = 1024; // limits the ContractCostParams size to 12kB +// limits the ContractCostParams size to 20kB +const CONTRACT_COST_COUNT_LIMIT = 1024; typedef ContractCostParamEntry ContractCostParams;