Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate with V1 algo for tests #2469

Draft
wants to merge 174 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 170 commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
448d8c2
Remove height parameter, change tests
MitchTurner Oct 30, 2024
c5866a3
Modify to take vec instead of range
MitchTurner Oct 30, 2024
c54f098
Add tests to make sure it is sane
MitchTurner Oct 30, 2024
fcf4477
Rename variable
MitchTurner Oct 30, 2024
159d5b4
Fix analyzer
MitchTurner Oct 30, 2024
ba080ff
Rename some params
MitchTurner Oct 30, 2024
d2b3c28
Use slice instead of vec
MitchTurner Oct 30, 2024
128a9ba
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner Oct 30, 2024
5f19932
Cleanup code a bit
MitchTurner Oct 31, 2024
922f3e0
Update crates/fuel-gas-price-algorithm/src/v1/tests/update_da_record_…
MitchTurner Oct 31, 2024
d7e9bdd
Pick nit
MitchTurner Oct 31, 2024
12c517e
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner Oct 31, 2024
f8dca06
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner Oct 31, 2024
2bb86fe
Optimize projected calc by caching running total
MitchTurner Nov 1, 2024
60771e9
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner Nov 1, 2024
03da963
Fix analyzer
MitchTurner Nov 1, 2024
ea14e6f
Simplify metadata
MitchTurner Nov 1, 2024
b615b33
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner Nov 14, 2024
cfd1a71
Merge remote-tracking branch 'origin' into feature/allow-DA-blocks-to…
MitchTurner Nov 17, 2024
d983891
Resolve logical conflicts from merge
MitchTurner Nov 17, 2024
4c2b844
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner Nov 17, 2024
1836656
WIP
MitchTurner Nov 18, 2024
48fe978
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner Nov 18, 2024
18fefb7
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner Nov 19, 2024
b15a93f
Get compiling
MitchTurner Nov 19, 2024
279191c
Start adding tests
MitchTurner Nov 19, 2024
63b0266
Get existing tests passing
MitchTurner Nov 19, 2024
477c731
WIP
MitchTurner Nov 19, 2024
b578a8e
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner Nov 19, 2024
7ca55c7
Ignore entire batches with blocks not in the unrecorded_blocks
MitchTurner Nov 19, 2024
6ac41de
Add comments to explain unexpected behavior
MitchTurner Nov 19, 2024
f2af4aa
Merge branch 'master' into feature/allow-DA-blocks-to-be-received-out…
MitchTurner Nov 20, 2024
4e07415
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner Nov 20, 2024
cc90cbd
Fix tracing messages to be emitted at the right time
MitchTurner Nov 20, 2024
11df7ae
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner Nov 20, 2024
7ac01aa
Fix logic to always remove recorded blocks, use predicted cost as bes…
MitchTurner Nov 20, 2024
ca6e1e5
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner Nov 20, 2024
2592ad0
Update CHANGELOG
MitchTurner Nov 20, 2024
eb233ab
Remove some TODOs
MitchTurner Nov 20, 2024
d32b347
Remove other todo
MitchTurner Nov 20, 2024
9f78fa6
Add tests, fix bad bug
MitchTurner Nov 20, 2024
6b9969c
Merge branch 'feature/allow-DA-blocks-to-be-received-out-of-order' in…
MitchTurner Nov 20, 2024
fc8c427
Fix copy-paste errors
MitchTurner Nov 20, 2024
87dc547
Fix broken tests
MitchTurner Nov 20, 2024
008f5fb
Correct test, use trace instead of debug
MitchTurner Nov 27, 2024
a409e6e
Merge remote-tracking branch 'origin' into feature/init-task-for-v1-g…
MitchTurner Nov 29, 2024
24d4a5d
Introduce unrecorded blocks abstraction without implementation
MitchTurner Nov 29, 2024
9f6a649
Use fuel storage in impl
MitchTurner Nov 29, 2024
1261c4d
Implement adapter
MitchTurner Nov 29, 2024
58f749b
Add simple tests
MitchTurner Nov 29, 2024
f969e88
Fix test, update CHANGELOG
MitchTurner Nov 29, 2024
b2051ce
update comment
MitchTurner Nov 29, 2024
68a21de
Make generic arg consistent
MitchTurner Nov 29, 2024
9276cc9
Appease Clippy-sama
MitchTurner Nov 29, 2024
3679422
Remove estra import
MitchTurner Nov 30, 2024
2a06ec0
Merge branch 'master' into feature/init-task-for-v1-gas-price-service
MitchTurner Nov 30, 2024
b47a2ba
Integrate with V1 algo
MitchTurner Nov 30, 2024
9fbdf1a
WIP add test
MitchTurner Nov 30, 2024
f7f60cd
Add working fake http server
MitchTurner Dec 1, 2024
1598c2d
WIP add new config values
MitchTurner Dec 2, 2024
434f764
WIP
MitchTurner Dec 2, 2024
6af9589
Restructure the algo methods to accomodate storage txs
MitchTurner Dec 3, 2024
b9d6571
Update crates/services/gas_price_service/src/v0/service.rs
MitchTurner Dec 3, 2024
770998e
WIP
MitchTurner Dec 3, 2024
0c4640e
Simplify generic constraints
MitchTurner Dec 3, 2024
309d2cb
Merge branch 'feature/init-task-for-v1-gas-price-service', remote-tra…
MitchTurner Dec 3, 2024
5d5d48b
WIP adding transactionable storage
MitchTurner Dec 3, 2024
3c0a0ff
WIP fixing lifetime issues
MitchTurner Dec 4, 2024
36bbb4d
Incremental improvements to compiler errors
MitchTurner Dec 4, 2024
1447d90
Fix compilation errors with lifetimes
MitchTurner Dec 4, 2024
755f7b0
Add passing test
MitchTurner Dec 4, 2024
05ddee6
Fix another test
MitchTurner Dec 4, 2024
d9bbe36
Fix another test
MitchTurner Dec 4, 2024
b70b2eb
Fix remaining test
MitchTurner Dec 4, 2024
f443289
Merge branch 'master' into feature/init-task-for-v1-gas-price-service
MitchTurner Dec 4, 2024
921b6e2
Merge branch 'feature/init-task-for-v1-gas-price-service' into chore/…
MitchTurner Dec 4, 2024
8009b07
Remove commented code
MitchTurner Dec 4, 2024
0bb7e7a
More cleanup
MitchTurner Dec 4, 2024
ed9dab4
Remove unused dep
MitchTurner Dec 4, 2024
6c5df4c
Update CHANGELOG
MitchTurner Dec 4, 2024
a6caf6c
Add test for updating sequence number
MitchTurner Dec 4, 2024
5dcfcb7
Add test for reading sequence number
MitchTurner Dec 4, 2024
a587b8a
Separate traits out into get and set traits
MitchTurner Dec 4, 2024
37235ae
Fix broken test
MitchTurner Dec 5, 2024
96f6b9d
Cleanup extra code, remove unused imports, hide imlementations.
MitchTurner Dec 5, 2024
ecaef18
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner Dec 5, 2024
95f85f5
Fix compilation
MitchTurner Dec 5, 2024
eb91ceb
Use `ServiceRunner` for da service
MitchTurner Dec 6, 2024
ae9605d
WIP debugging test
MitchTurner Dec 6, 2024
f43f00d
Merge branch 'master' into feature/init-task-for-v1-gas-price-service
MitchTurner Dec 6, 2024
e80edd5
Merge branch 'feature/init-task-for-v1-gas-price-service' into chore/…
MitchTurner Dec 6, 2024
1d195b9
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner Dec 6, 2024
51d41c7
Correct typo
MitchTurner Dec 6, 2024
17a56d3
Merge branch 'feature/init-task-for-v1-gas-price-service' into chore/…
MitchTurner Dec 6, 2024
9905022
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner Dec 6, 2024
a642cb7
Use relevant config for v1 constructor
MitchTurner Dec 6, 2024
8b027b9
Merge branch 'feature/init-task-for-v1-gas-price-service' into chore/…
MitchTurner Dec 6, 2024
abf0cca
Add todo
MitchTurner Dec 6, 2024
2469bf8
Merge remote-tracking branch 'origin' into chore/add-unrecorded-block…
MitchTurner Dec 7, 2024
288f51f
Add missed things
MitchTurner Dec 7, 2024
00daced
Merge branch 'master' into chore/add-unrecorded-blocks-trait
MitchTurner Dec 9, 2024
9fe913c
Remove extra code from merge
MitchTurner Dec 9, 2024
76917d8
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner Dec 9, 2024
2de6505
Update CHANGELOG
MitchTurner Dec 9, 2024
368b939
Add missing PR number
MitchTurner Dec 9, 2024
009a847
Merge branch 'master' into chore/add-unrecorded-blocks-trait
MitchTurner Dec 9, 2024
d3c826b
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner Dec 9, 2024
86c3e2e
Lint cargo.toml
MitchTurner Dec 9, 2024
6291999
Use clearer types in storage definitions, fix init code
MitchTurner Dec 9, 2024
2eba245
Suggestions to simplify the V1 storage requirements and initializatio…
xgreenx Dec 9, 2024
0226aae
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner Dec 9, 2024
33aa291
Additional merging changes
MitchTurner Dec 9, 2024
498c2ad
Get first test passing
MitchTurner Dec 10, 2024
6f46343
Simplify test
MitchTurner Dec 10, 2024
3496adc
Add another messy test, fix bug in activity code
MitchTurner Dec 11, 2024
0c5ab28
WIP add dynamic test
MitchTurner Dec 11, 2024
f2abd4d
Make sane
MitchTurner Dec 11, 2024
1b74ff5
Small simplificaitons
xgreenx Dec 12, 2024
287f50f
Remove comment
MitchTurner Dec 12, 2024
986c6c6
Fix the setting of the sequence number
MitchTurner Dec 12, 2024
ffce782
Format
MitchTurner Dec 12, 2024
4fc7184
Remove comment, move mutation, rename field
MitchTurner Dec 12, 2024
ee1c886
Fix compilation
MitchTurner Dec 12, 2024
43e19f2
Appease Clippy-sama
MitchTurner Dec 12, 2024
9ed0172
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner Dec 12, 2024
198a07e
Rewrite server to be more dynamic
MitchTurner Dec 12, 2024
eae3add
Cleanup test a lot
MitchTurner Dec 12, 2024
8c6092b
Fix annoying little bug
MitchTurner Dec 12, 2024
b82f354
Add more helpful messages
MitchTurner Dec 12, 2024
93876fa
Rename sequence number to bundle id
MitchTurner Dec 12, 2024
398ecec
Merge branch 'master' into chore/add-unrecorded-blocks-trait
MitchTurner Dec 12, 2024
2a77ef6
Merge branch 'chore/add-unrecorded-blocks-trait' into chore/add-tests…
MitchTurner Dec 12, 2024
9218c32
Fix simulation
MitchTurner Dec 13, 2024
599e358
Remove logging
MitchTurner Dec 13, 2024
e29a62e
Merge remote-tracking branch 'origin' into chore/add-tests-for-v1-gas…
MitchTurner Dec 13, 2024
5584731
Clean up code
MitchTurner Dec 13, 2024
f588485
Fix _bug_ that was really just a high min gas price
MitchTurner Dec 13, 2024
78bfa55
Merge branch 'master' into chore/add-tests-for-v1-gas-service
MitchTurner Dec 13, 2024
3f6584d
fmt
MitchTurner Dec 13, 2024
9876ebb
Remove test
MitchTurner Dec 14, 2024
de1aaa7
Remove drop
MitchTurner Dec 14, 2024
30339bb
Fix test to use smaller txs and be more precise about costs
MitchTurner Dec 14, 2024
9f3f5fc
More fiddling
MitchTurner Dec 14, 2024
9f855c9
More fiddling
MitchTurner Dec 14, 2024
c770613
Fix test
MitchTurner Dec 14, 2024
39e9e97
Add some tests, fix the storage tx in init task
MitchTurner Dec 15, 2024
5c06f5f
Change base values
MitchTurner Dec 16, 2024
b958ebc
Fix syncing bug by removing redundant updater
MitchTurner Dec 16, 2024
6d881d3
chore: killed stale dead tests
netrome Dec 16, 2024
64108ce
fix: Increase exec gas price if threshold is met
netrome Dec 16, 2024
2f8100f
Add failing backward compatibility test
MitchTurner Dec 17, 2024
78f5b94
Fix algo compatibility test
MitchTurner Dec 17, 2024
084f1b7
chore(gas_price_service_v1): allow stopping the service during sync w…
rymnc Dec 17, 2024
108aa0d
fix(gas_price_service_v1): block committer api format (#2506)
rymnc Dec 18, 2024
15c26f0
Remove test used for debugging
MitchTurner Dec 18, 2024
0dc2dc7
Use backward-compatible V0 metadata
MitchTurner Dec 19, 2024
ea02c59
Chore/non breaking cli arguments with sensible defaults (#2507)
netrome Dec 20, 2024
c4a42dc
fix(gas_price_service_v1): ensure that the algo updater is synced to …
rymnc Dec 24, 2024
a4e65f0
Merge branch 'master' into chore/add-tests-for-v1-gas-service
rymnc Dec 24, 2024
b6a29ae
fix: fmt
rymnc Dec 25, 2024
bb007d3
chore: add backward compatibility test for db storage
rymnc Dec 25, 2024
eb202cf
test: produce blocks so that the metadata is upgraded
rymnc Dec 25, 2024
c29dae7
Add tests for cost recording
MitchTurner Dec 29, 2024
2469fb4
Merge remote-tracking branch 'origin' into chore/add-tests-for-v1-gas…
MitchTurner Jan 6, 2025
2217670
Merge branch 'master' into chore/add-tests-for-v1-gas-service
MitchTurner Jan 6, 2025
b380e99
Fix test
MitchTurner Jan 6, 2025
bc983cb
Cleanup mess from debugging
MitchTurner Jan 7, 2025
4ed9ec1
Merge branch 'master' into chore/add-tests-for-v1-gas-service
MitchTurner Jan 7, 2025
4a21da4
Remove unused imports, reconstitute test
MitchTurner Jan 7, 2025
a7eaa32
Lint toml file
MitchTurner Jan 7, 2025
31fd51f
Fix for DA L2 sync race condition (#2512)
MitchTurner Jan 7, 2025
8d12301
Merge branch 'master' into chore/add-tests-for-v1-gas-service
rymnc Jan 9, 2025
6ea6a5c
fix: default da poll interval to be higher than 10ms
rymnc Jan 9, 2025
ae40ee4
feat(gas_price_service_v1): include `max_da_gas_price` to control vol…
rymnc Jan 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,19 @@ jobs:
- command: make
args: check --locked
- command: nextest
args: run --workspace
args: run --workspace --retries 3 --no-fail-fast
- command: nextest
args: run --all-features --workspace
args: run --all-features --workspace --retries 3 --no-fail-fast
- command: nextest
args: run -p fuel-core --no-default-features
args: run -p fuel-core --no-default-features --retries 3 --no-fail-fast
- command: nextest
args: run -p fuel-core --lib executor --features wasm-executor
args: run -p fuel-core --lib executor --features wasm-executor --retries 3 --no-fail-fast
env:
FUEL_ALWAYS_USE_WASM=true
- command: nextest
args: run -p fuel-core-client --no-default-features
args: run -p fuel-core-client --no-default-features --retries 3 --no-fail-fast
- command: nextest
args: run -p fuel-core-chain-config --no-default-features
args: run -p fuel-core-chain-config --no-default-features --retries 3 --no-fail-fast
# Don't split this command; this is a workaround.
# We need to run `cargo check` first to fetch the locked dependencies
# for `fuel-core 0.26.0`(because of the bug with `--offline`
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ node_modules/
package-lock.json
package.json
bin/fuel-core/chainspec/local-testnet/state_transition_bytecode.wasm

.DS_Store
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- [2233](https://github.com/FuelLabs/fuel-core/pull/2233): Introduce a new column `modification_history_v2` for storing the modification history in the historical rocksDB. Keys in this column are stored in big endian order. Changed the behaviour of the historical rocksDB to write changes for new block heights to the new column, and to perform lookup of values from the `modification_history_v2` table first, and then from the `modification_history` table, performing a migration upon access if necessary.

#### Breaking
- [2469](https://github.com/FuelLabs/fuel-core/pull/2469): Move from `GasPriceServicev0` to `GasPriceServiceV1`. Include new config values.
- [2438](https://github.com/FuelLabs/fuel-core/pull/2438): The `fuel-core-client` can only work with new version of the `fuel-core`. The `0.40` and all older versions are not supported.
- [2438](https://github.com/FuelLabs/fuel-core/pull/2438): Updated `fuel-vm` to `0.59.1` release. Check [release notes](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.59.0) for more details.
- [2389](https://github.com/FuelLabs/fuel-core/pull/2258): Updated the `messageProof` GraphQL schema to return a non-nullable `MessageProof`.
Expand Down
75 changes: 72 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions bin/e2e-test-client/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ fn dev_config() -> Config {
chain_config.genesis_state_transition_version = Some(LATEST_STATE_TRANSITION_VERSION);
let reader = reader.with_chain_config(chain_config);

let mut config = Config::local_node_with_reader(reader);
config.starting_gas_price = 1;
let mut config = Config::local_node_with_reader(reader, None);
config.starting_exec_gas_price = 1;
config.block_producer.coinbase_recipient = Some(
ContractId::from_str(
"0x7777777777777777777777777777777777777777777777777777777777777777",
Expand Down
63 changes: 54 additions & 9 deletions bin/fuel-core/src/cli/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,21 +187,49 @@ pub struct Command {
#[arg(long = "native-executor-version", env)]
pub native_executor_version: Option<StateTransitionBytecodeVersion>,

/// The starting gas price for the network
#[arg(long = "starting-gas-price", default_value = "0", env)]
/// The starting execution gas price for the network
#[arg(long = "starting-gas-price", default_value = "1000", env)]
pub starting_gas_price: u64,

/// The percentage change in gas price per block
#[arg(long = "gas-price-change-percent", default_value = "0", env)]
pub gas_price_change_percent: u64,
#[arg(long = "gas-price-change-percent", default_value = "10", env)]
pub gas_price_change_percent: u16,

/// The minimum allowed gas price
#[arg(long = "min-gas-price", default_value = "0", env)]
pub min_gas_price: u64,

/// The percentage threshold for gas price increase
#[arg(long = "gas-price-threshold-percent", default_value = "50", env)]
pub gas_price_threshold_percent: u64,
pub gas_price_threshold_percent: u8,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a breaking change


/// Minimum DA gas price
#[arg(long = "min-da-gas-price", default_value = "10000000", env)]
pub min_da_gas_price: u64,

/// P component of DA gas price calculation
/// **NOTE**: This is the **inverse** gain of a typical P controller.
/// Increasing this value will reduce gas price fluctuations.
#[arg(long = "da-p-component", default_value = "620090", env)]
pub da_p_component: i64,

/// D component of DA gas price calculation
/// **NOTE**: This is the **inverse** anticipatory control factor of a typical PD controller.
/// Increasing this value will reduce the dampening effect of quick algorithm changes.
#[arg(long = "da-d-component", default_value = "3528576", env)]
pub da_d_component: i64,

/// Maximum DA gas price change percent
#[arg(long = "max-da-gas-price-change-percent", default_value = "10", env)]
pub max_da_gas_price_change_percent: u16,

/// The URL for the DA Block Committer info
#[arg(long = "da-committer-url", env)]
pub da_committer_url: Option<String>,

/// The interval at which the `DaSourceService` polls for new data
#[arg(long = "da-poll-interval", env)]
pub da_poll_interval: Option<u32>,

/// The signing key used when producing blocks.
/// Setting via the `CONSENSUS_KEY_SECRET` ENV var is preferred.
Expand Down Expand Up @@ -301,6 +329,12 @@ impl Command {
gas_price_change_percent,
min_gas_price,
gas_price_threshold_percent,
min_da_gas_price,
da_p_component,
da_d_component,
max_da_gas_price_change_percent,
da_committer_url,
da_poll_interval,
consensus_key,
#[cfg(feature = "aws-kms")]
consensus_aws_kms,
Expand Down Expand Up @@ -592,10 +626,10 @@ impl Command {
coinbase_recipient,
metrics: disabled_metrics.is_enabled(Module::Producer),
},
starting_gas_price,
gas_price_change_percent,
min_gas_price,
gas_price_threshold_percent,
starting_exec_gas_price: starting_gas_price,
exec_gas_price_change_percent: gas_price_change_percent,
min_exec_gas_price: min_gas_price,
exec_gas_price_threshold_percent: gas_price_threshold_percent,
block_importer,
da_compression,
#[cfg(feature = "relayer")]
Expand All @@ -610,6 +644,17 @@ impl Command {
min_connected_reserved_peers,
time_until_synced: time_until_synced.into(),
memory_pool_size,
da_gas_price_factor: NonZeroU64::new(100).expect("100 is not zero"),
min_da_gas_price,
max_da_gas_price_change_percent,
da_p_component,
da_d_component,
activity_normal_range_size: 100,
activity_capped_range_size: 0,
activity_decrease_range_size: 0,
da_committer_url,
block_activity_threshold: 0,
da_poll_interval,
};
Ok(config)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ impl DatabaseDescription for GasPriceDatabase {
type Height = BlockHeight;

fn version() -> u32 {
0
1
}

fn name() -> String {
Expand Down
50 changes: 26 additions & 24 deletions crates/fuel-core/src/service.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
use self::adapters::BlockImporterAdapter;
use crate::{
combined_database::{
CombinedDatabase,
ShutdownListener,
},
database::Database,
service::{
adapters::{
ExecutorAdapter,
PoAAdapter,
},
sub_services::TxPoolSharedState,
},
use std::{
net::SocketAddr,
sync::Arc,
};

pub use config::{
Config,
DbType,
RelayerConsensusConfig,
VMConfig,
};
use fuel_core_chain_config::{
ConsensusConfig,
Expand All @@ -21,6 +17,7 @@ use fuel_core_poa::{
ports::BlockImporter,
verifier::verify_consensus,
};
pub use fuel_core_services::Service as ServiceTrait;
use fuel_core_services::{
RunnableService,
RunnableTask,
Expand All @@ -40,18 +37,23 @@ use fuel_core_storage::{
StorageAsMut,
};
use fuel_core_types::blockchain::consensus::Consensus;
use std::{
net::SocketAddr,
sync::Arc,
};

pub use config::{
Config,
DbType,
RelayerConsensusConfig,
VMConfig,
use crate::{
combined_database::{
CombinedDatabase,
ShutdownListener,
},
database::Database,
service::{
adapters::{
ExecutorAdapter,
PoAAdapter,
},
sub_services::TxPoolSharedState,
},
};
pub use fuel_core_services::Service as ServiceTrait;

use self::adapters::BlockImporterAdapter;

pub mod adapters;
pub mod config;
Expand Down
Loading
Loading