From dcb9ef09779ef5289100f3ed8fa6aed240a0e2b5 Mon Sep 17 00:00:00 2001 From: Milosz Muszynski Date: Thu, 18 Jan 2024 12:58:02 +0100 Subject: [PATCH] rusk: adjusted gas usage in services' tests --- rusk/CHANGELOG.md | 2 ++ rusk/tests/services/gas_behavior.rs | 2 +- rusk/tests/services/multi_transfer.rs | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/rusk/CHANGELOG.md b/rusk/CHANGELOG.md index d244cff98f..9acd210476 100644 --- a/rusk/CHANGELOG.md +++ b/rusk/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Change rusk::provisioners to filter out slashed stakes [#1257] - Change block processing to slash failed-iteration provisioners [#1257] - Change FailedIterations to include only nil quorum certificates [#1257] +- Adjusted gas usage in services' tests [#1235] ### Removed @@ -188,6 +189,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add build system that generates keys for circuits and caches them. [#1257]: https://github.com/dusk-network/rusk/pull/1257 +[#1235]: https://github.com/dusk-network/rusk/issues/1235 [#1219]: https://github.com/dusk-network/rusk/issues/1219 [#401]: https://github.com/dusk-network/rusk/issues/401 [#369]: https://github.com/dusk-network/rusk/issues/369 diff --git a/rusk/tests/services/gas_behavior.rs b/rusk/tests/services/gas_behavior.rs index 2c37b087f0..007fd9e1c1 100644 --- a/rusk/tests/services/gas_behavior.rs +++ b/rusk/tests/services/gas_behavior.rs @@ -24,7 +24,7 @@ const BLOCK_HEIGHT: u64 = 1; const BLOCK_GAS_LIMIT: u64 = 1_000_000_000_000; const INITIAL_BALANCE: u64 = 10_000_000_000; -const GAS_LIMIT_0: u64 = 7_000_000; +const GAS_LIMIT_0: u64 = 8_000_000; const GAS_LIMIT_1: u64 = 200_000_000; // Creates the Rusk initial state for the tests below diff --git a/rusk/tests/services/multi_transfer.rs b/rusk/tests/services/multi_transfer.rs index c4fe9da978..f1336f3148 100644 --- a/rusk/tests/services/multi_transfer.rs +++ b/rusk/tests/services/multi_transfer.rs @@ -25,8 +25,8 @@ use crate::common::wallet::{TestProverClient, TestStateClient, TestStore}; const BLOCK_HEIGHT: u64 = 1; // This is purposefully chosen to be low to trigger the discarding of a // perfectly good transaction. -const BLOCK_GAS_LIMIT: u64 = 24_000_000; -const GAS_LIMIT: u64 = 12_000_000; // Lowest value for a transfer +const GAS_LIMIT: u64 = 13_000_000; // Lowest value for a transfer +const BLOCK_GAS_LIMIT: u64 = GAS_LIMIT * 23 / 10; // out of gas after 2 transactions const INITIAL_BALANCE: u64 = 10_000_000_000; // Creates the Rusk initial state for the tests below