Skip to content

Commit

Permalink
rusk: adjusted gas usage in services' tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miloszm committed Jan 19, 2024
1 parent 66fddff commit dcb9ef0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions rusk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rusk/tests/services/gas_behavior.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions rusk/tests/services/multi_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dcb9ef0

Please sign in to comment.