Skip to content

Commit

Permalink
Duplication of the 0.22.1 release (FuelLabs#1665)
Browse files Browse the repository at this point in the history
It is a duplication of the
FuelLabs#1664 for the `master`.
  • Loading branch information
xgreenx authored Feb 14, 2024
1 parent 1a3c624 commit bde19a7
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 50 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ Description of the upcoming release here.
- [#1573](https://github.com/FuelLabs/fuel-core/pull/1573): Remove nested p2p request/response encoding. Only breaks p2p networking compatibility with older fuel-core versions, but is otherwise fully internal.


## [Version 0.22.1]

### Fixed
- [#1664](https://github.com/FuelLabs/fuel-core/pull/1664): Fixed long database initialization after restart of the node by setting limit to the WAL file.


## [Version 0.22.0]

### Added
Expand Down
49 changes: 25 additions & 24 deletions Cargo.lock

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

48 changes: 24 additions & 24 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,33 +46,33 @@ homepage = "https://fuel.network/"
keywords = ["blockchain", "cryptocurrencies", "fuel-vm", "vm"]
license = "BUSL-1.1"
repository = "https://github.com/FuelLabs/fuel-core"
version = "0.22.0"
version = "0.22.1"

[workspace.dependencies]
# Workspace members
fuel-core = { version = "0.22.0", path = "./crates/fuel-core", default-features = false }
fuel-core-client-bin = { version = "0.22.0", path = "./bin/client" }
fuel-core-bin = { version = "0.22.0", path = "./bin/fuel-core" }
fuel-core-keygen = { version = "0.22.0", path = "./crates/keygen" }
fuel-core-keygen-bin = { version = "0.22.0", path = "./bin/keygen" }
fuel-core-chain-config = { version = "0.22.0", path = "./crates/chain-config", default-features = false }
fuel-core-client = { version = "0.22.0", path = "./crates/client" }
fuel-core-database = { version = "0.22.0", path = "./crates/database" }
fuel-core-metrics = { version = "0.22.0", path = "./crates/metrics" }
fuel-core-services = { version = "0.22.0", path = "./crates/services" }
fuel-core-consensus-module = { version = "0.22.0", path = "./crates/services/consensus_module" }
fuel-core-bft = { version = "0.22.0", path = "./crates/services/consensus_module/bft" }
fuel-core-poa = { version = "0.22.0", path = "./crates/services/consensus_module/poa" }
fuel-core-executor = { version = "0.22.0", path = "./crates/services/executor" }
fuel-core-importer = { version = "0.22.0", path = "./crates/services/importer" }
fuel-core-p2p = { version = "0.22.0", path = "./crates/services/p2p" }
fuel-core-producer = { version = "0.22.0", path = "./crates/services/producer" }
fuel-core-relayer = { version = "0.22.0", path = "./crates/services/relayer" }
fuel-core-sync = { version = "0.22.0", path = "./crates/services/sync" }
fuel-core-txpool = { version = "0.22.0", path = "./crates/services/txpool" }
fuel-core-storage = { version = "0.22.0", path = "./crates/storage" }
fuel-core-trace = { version = "0.22.0", path = "./crates/trace" }
fuel-core-types = { version = "0.22.0", path = "./crates/types", default-features = false }
fuel-core = { version = "0.22.1", path = "./crates/fuel-core", default-features = false }
fuel-core-client-bin = { version = "0.22.1", path = "./bin/client" }
fuel-core-bin = { version = "0.22.1", path = "./bin/fuel-core" }
fuel-core-keygen = { version = "0.22.1", path = "./crates/keygen" }
fuel-core-keygen-bin = { version = "0.22.1", path = "./bin/keygen" }
fuel-core-chain-config = { version = "0.22.1", path = "./crates/chain-config", default-features = false }
fuel-core-client = { version = "0.22.1", path = "./crates/client" }
fuel-core-database = { version = "0.22.1", path = "./crates/database" }
fuel-core-metrics = { version = "0.22.1", path = "./crates/metrics" }
fuel-core-services = { version = "0.22.1", path = "./crates/services" }
fuel-core-consensus-module = { version = "0.22.1", path = "./crates/services/consensus_module" }
fuel-core-bft = { version = "0.22.1", path = "./crates/services/consensus_module/bft" }
fuel-core-poa = { version = "0.22.1", path = "./crates/services/consensus_module/poa" }
fuel-core-executor = { version = "0.22.1", path = "./crates/services/executor" }
fuel-core-importer = { version = "0.22.1", path = "./crates/services/importer" }
fuel-core-p2p = { version = "0.22.1", path = "./crates/services/p2p" }
fuel-core-producer = { version = "0.22.1", path = "./crates/services/producer" }
fuel-core-relayer = { version = "0.22.1", path = "./crates/services/relayer" }
fuel-core-sync = { version = "0.22.1", path = "./crates/services/sync" }
fuel-core-txpool = { version = "0.22.1", path = "./crates/services/txpool" }
fuel-core-storage = { version = "0.22.1", path = "./crates/storage" }
fuel-core-trace = { version = "0.22.1", path = "./crates/trace" }
fuel-core-types = { version = "0.22.1", path = "./crates/types", default-features = false }
fuel-core-tests = { version = "0.0.0", path = "./tests" }
fuel-core-xtask = { version = "0.0.0", path = "./xtask" }

Expand Down
3 changes: 2 additions & 1 deletion crates/fuel-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ futures = { workspace = true }
hex = { version = "0.4", features = ["serde"] }
hyper = { workspace = true }
itertools = { workspace = true }
num_cpus = { version = "1.16.0", optional = true }
rand = { workspace = true }
rocksdb = { version = "0.21", default-features = false, features = [
"lz4",
Expand Down Expand Up @@ -74,7 +75,7 @@ test-strategy = { workspace = true }
default = ["rocksdb"]
p2p = ["dep:fuel-core-p2p", "dep:fuel-core-sync"]
relayer = ["dep:fuel-core-relayer"]
rocksdb = ["dep:rocksdb", "dep:tempfile"]
rocksdb = ["dep:rocksdb", "dep:tempfile", "dep:num_cpus"]
test-helpers = ["fuel-core-p2p?/test-helpers"]
# features to enable in production, but increase build times
rocksdb-production = ["rocksdb", "rocksdb/jemalloc"]
6 changes: 6 additions & 0 deletions crates/fuel-core/src/state/rocks_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ use rocksdb::{
WriteBatch,
};
use std::{
cmp,
env,
fmt::Debug,
iter,
Expand Down Expand Up @@ -144,6 +145,11 @@ where
let mut opts = Options::default();
opts.create_if_missing(true);
opts.set_compression_type(DBCompressionType::Lz4);
// TODO: Make it customizable https://github.com/FuelLabs/fuel-core/issues/1666
opts.set_max_total_wal_size(64 * 1024 * 1024);
let cpu_number =
i32::try_from(num_cpus::get()).expect("The number of CPU can't exceed `i32`");
opts.increase_parallelism(cmp::max(1, cpu_number / 2));
if let Some(capacity) = capacity {
// Set cache size 1/3 of the capacity. Another 1/3 is
// used by block cache and the last 1 / 3 remains for other purposes:
Expand Down
2 changes: 1 addition & 1 deletion deployment/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: ${fuel_core_service_name}
description: ${fuel_core_service_name} Helm Chart
type: application
appVersion: "0.22.0"
appVersion: "0.22.1"
version: 0.1.0

0 comments on commit bde19a7

Please sign in to comment.