Skip to content

Commit

Permalink
chore(gas_price_servie): move algorithm_updater to fuel-core-gas-pric…
Browse files Browse the repository at this point in the history
…e-service
  • Loading branch information
rymnc committed Sep 24, 2024
1 parent ed5c8b4 commit 103b066
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions crates/fuel-core/src/service/sub_services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ use crate::{
};
#[allow(unused_imports)]
use fuel_core_gas_price_service::fuel_gas_price_updater::{
algorithm_updater,
fuel_core_storage_adapter::FuelL2BlockSource,
Algorithm,
AlgorithmV0,
Expand All @@ -64,8 +65,6 @@ use fuel_core_types::blockchain::primitives::DaBlockHeight;
use std::sync::Arc;
use tokio::sync::Mutex;

mod algorithm_updater;

pub type PoAService = fuel_core_poa::Service<
TxPoolAdapter,
BlockProducerAdapter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ mod tests;

pub mod fuel_core_storage_adapter;

pub mod algorithm_updater;
pub mod da_source_adapter;

pub struct FuelGasPriceUpdater<L2, Metadata, DaBlockCosts> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use fuel_core_gas_price_service::{
use crate::{
fuel_gas_price_updater::{
da_source_adapter::{
dummy_costs::DummyDaBlockCosts,
Expand All @@ -14,7 +14,6 @@ use fuel_core_gas_price_service::{
},
Algorithm,
AlgorithmUpdater,
AlgorithmUpdaterV0,
BlockInfo,
FuelGasPriceUpdater,
UpdaterMetadata,
Expand Down Expand Up @@ -48,6 +47,7 @@ use fuel_core_types::{
fuel_types::BlockHeight,
services::block_importer::SharedImportResult,
};
use fuel_gas_price_algorithm::v0::AlgorithmUpdaterV0;

type Updater<GasPriceStore, SettingsProvider> = FuelGasPriceUpdater<
FuelL2BlockSource<SettingsProvider>,
Expand Down

0 comments on commit 103b066

Please sign in to comment.