From 46f96374766f8a350b5dc64f2a7cdcb3064cb29f Mon Sep 17 00:00:00 2001 From: Milosz Muszynski Date: Tue, 21 May 2024 14:40:07 +0200 Subject: [PATCH] node: changed economic gas spent to economic mode --- node/Cargo.toml | 1 + node/src/database/rocksdb.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/node/Cargo.toml b/node/Cargo.toml index 94670a2e45..7b6fd430c9 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -49,6 +49,7 @@ rand = "0.8" rand_core = "0.6" tempdir = "0.3" criterion = { version = "0.5", features = ["async_futures"] } +rusk-abi = { version = "0.13.0-rc", path = "../rusk-abi", default-features = false } [build-dependencies] rustc_tools_util = "=0.2.0" diff --git a/node/src/database/rocksdb.rs b/node/src/database/rocksdb.rs index eca1e753ee..a4bb24d9fa 100644 --- a/node/src/database/rocksdb.rs +++ b/node/src/database/rocksdb.rs @@ -877,6 +877,7 @@ mod tests { use fake::{Fake, Faker}; use node_data::ledger::Transaction; + use rusk_abi::EconomicMode; #[test] fn test_store_block() { @@ -1104,7 +1105,7 @@ mod tests { inner: t.clone(), block_height: 0, gas_spent: 0, - economic_gas_spent: 0, + economic_mode: EconomicMode::None, err: None, }) .collect()