Skip to content

Commit

Permalink
Release v0.31.0 (#2016)
Browse files Browse the repository at this point in the history
## Version v0.31.0

### Added
- [#2014](FuelLabs/fuel-core#2014): Added a
separate thread for the block importer.
- [#2013](FuelLabs/fuel-core#2013): Added a
separate thread to process P2P database lookups.
- [#2004](FuelLabs/fuel-core#2004): Added new
CLI argument `continue-services-on-error` to control internal flow of
services.
- [#2004](FuelLabs/fuel-core#2004): Added
handling of incorrect shutdown of the off-chain GraphQL worker by using
state rewind feature.
- [#2007](FuelLabs/fuel-core#2007): Improved
metrics:
  - Added database metrics per column.
  - Added statistic about commit time of each database.
- Refactored how metrics are registered: Now, we use only one register
shared between all metrics. This global register is used to encode all
metrics.
- [#1996](FuelLabs/fuel-core#1996): Added
support for rollback command when state rewind feature is enabled. The
command allows the rollback of the state of the blockchain several
blocks behind until the end of the historical window. The default
historical window it 7 days.
- [#1996](FuelLabs/fuel-core#1996): Added
support for the state rewind feature. The feature allows the execution
of the blocks in the past and the same execution results to be received.
Together with forkless upgrades, execution of any block from the past is
possible if historical data exist for the target block height.
- [#1994](FuelLabs/fuel-core#1994): Added the
actual implementation for the `AtomicView::latest_view`.
- [#1972](FuelLabs/fuel-core#1972): Implement
`AlgorithmUpdater` for `GasPriceService`
- [#1948](FuelLabs/fuel-core#1948): Add new
`AlgorithmV1` and `AlgorithmUpdaterV1` for the gas price. Include tools
for analysis
- [#1676](FuelLabs/fuel-core#1676): Added new
CLI arguments:
    - `graphql-max-depth`
    - `graphql-max-complexity`
    - `graphql-max-recursive-depth`

### Changed
- [#2015](FuelLabs/fuel-core#2015): Small fixes
for the database:
- Fixed the name for historical columns - Metrics was working
incorrectly for historical columns.
- Added recommended setting for the RocksDB - The source of
recommendation is official documentation
https://github.com/facebook/rocksdb/wiki/Setup-Options-and-Basic-Tuning#other-general-options.
- Removed repairing since it could corrupt the database if fails -
Several users reported about the corrupted state of the database after
having a "Too many descriptors" error where in logs, repairing of the
database also failed with this error creating a `lost` folder.
- [#2010](FuelLabs/fuel-core#2010): Updated the
block importer to allow more blocks to be in the queue. It improves
synchronization speed and mitigate the impact of other services on
synchronization speed.
- [#2006](FuelLabs/fuel-core#2006): Process
block importer events first under P2P pressure.
- [#2002](FuelLabs/fuel-core#2002): Adapted the
block producer to react to checked transactions that were using another
version of consensus parameters during validation in the TxPool. After
an upgrade of the consensus parameters of the network, TxPool could
store invalid `Checked` transactions. This change fixes that by tracking
the version that was used to validate the transactions.
- [#1999](FuelLabs/fuel-core#1999): Minimize the
number of panics in the codebase.
- [#1990](FuelLabs/fuel-core#1990): Use latest
view for mutate GraphQL queries after modification of the node.
- [#1992](FuelLabs/fuel-core#1992): Parse
multiple relayer contracts, `RELAYER-V2-LISTENING-CONTRACTS` env
variable using a `,` delimiter.
- [#1980](FuelLabs/fuel-core#1980): Add
`Transaction` to relayer 's event filter

#### Breaking
- [#2012](FuelLabs/fuel-core#2012): Bumped the
`fuel-vm` to `0.55.0` release. More about the change
[here](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.55.0).
- [#2001](FuelLabs/fuel-core#2001): Prevent
GraphQL query body to be huge and cause OOM. The default body size is
`1MB`. The limit can be changed by the
`graphql-request-body-bytes-limit` CLI argument.
- [#1991](FuelLabs/fuel-core#1991): Prepare the
database to use different types than `Database` for atomic view.
- [#1989](FuelLabs/fuel-core#1989): Extract
`HistoricalView` trait from the `AtomicView`.
- [#1676](FuelLabs/fuel-core#1676): New
`fuel-core-client` is incompatible with the old `fuel-core` because of
two requested new fields.
- [#1676](FuelLabs/fuel-core#1676): Changed
default value for `api-request-timeout` to be `30s`.
- [#1676](FuelLabs/fuel-core#1676): Now, GraphQL
API has complexity and depth limitations on the queries. The default
complexity limit is `20000`. It is ~50 blocks per request with
transaction IDs and ~2-5 full blocks.

### Fixed
- [#2000](FuelLabs/fuel-core#2000): Use correct
query name in metrics for aliased queries.

## What's Changed
* Generate and publish code coverage reports in the CI by @Dentosal in
FuelLabs/fuel-core#1947
* Gas Price Algorithm by @MitchTurner in
FuelLabs/fuel-core#1948
* Use companies fork of the `publish-crates` action by @xgreenx in
FuelLabs/fuel-core#1986
* Weekly `cargo update` by @github-actions in
FuelLabs/fuel-core#1985
* Implement gas price updater for service by @MitchTurner in
FuelLabs/fuel-core#1972
* Extract `HistoricalView` trait from the `AtomicView` by @xgreenx in
FuelLabs/fuel-core#1989
* Use fresh `ReadView` for mutate queries by @xgreenx in
FuelLabs/fuel-core#1990
* Prevent api spam with GQL complexity limits by @Voxelot in
FuelLabs/fuel-core#1676
* Enable parsing multiple relayer listening contract addresses from
environment variables by @Jurshsmith in
FuelLabs/fuel-core#1992
* Prepare the database to use different types than `Database` for atomic
view by @xgreenx in FuelLabs/fuel-core#1991
* Added the actual implementation for the `AtomicView::latest_view` by
@xgreenx in FuelLabs/fuel-core#1994
* Weekly `cargo update` by @github-actions in
FuelLabs/fuel-core#1998
* Minimize the number of panics in the codebase by @xgreenx in
FuelLabs/fuel-core#1999
* feat: include Transaction events in topic0 filter for download_logs by
@DefiCake in FuelLabs/fuel-core#1980
* Use correct query name for metrics by @xgreenx in
FuelLabs/fuel-core#2000
* Prevent GraphQL query body to be huge and cause OOM by @xgreenx in
FuelLabs/fuel-core#2001
* Adapted the block producer to react on the outdated transactions from
the TxPool by @xgreenx in
FuelLabs/fuel-core#2002
* Process block importer events first under P2P pressure by @xgreenx in
FuelLabs/fuel-core#2006
* Implementation of the state rewind feature for the RocksDB by @xgreenx
in FuelLabs/fuel-core#1996
* Upgraded `fuel-vm` to `0.55.0` by @xgreenx in
FuelLabs/fuel-core#2012
* Improved metrics for the database by @xgreenx in
FuelLabs/fuel-core#2007
* Updated block importer to allow more blocks to be queue by @xgreenx in
FuelLabs/fuel-core#2010
* Added handling of incorrect shutdown of the off-chain GraphQL worker
by @xgreenx in FuelLabs/fuel-core#2004
* Moved P2P database lookups into a separate thread by @xgreenx in
FuelLabs/fuel-core#2013
* Use dedicated thread for the block importer by @xgreenx in
FuelLabs/fuel-core#2014
* Small fixes for the database by @xgreenx in
FuelLabs/fuel-core#2015

## New Contributors
* @Jurshsmith made their first contribution in
FuelLabs/fuel-core#1992
* @DefiCake made their first contribution in
FuelLabs/fuel-core#1980

**Full Changelog**:
FuelLabs/fuel-core@v0.30.0...v0.31.0
  • Loading branch information
GoldenPath1109 authored and rymnc committed Jul 5, 2024
1 parent 9784e6e commit 19d9b00
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 60 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [Version 0.31.0]

### Added
- [#2014](https://github.com/FuelLabs/fuel-core/pull/2014): Added a separate thread for the block importer.
- [#2013](https://github.com/FuelLabs/fuel-core/pull/2013): Added a separate thread to process P2P database lookups.
Expand Down
56 changes: 28 additions & 28 deletions Cargo.lock

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

56 changes: 28 additions & 28 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,39 +50,39 @@ homepage = "https://fuel.network/"
keywords = ["blockchain", "cryptocurrencies", "fuel-vm", "vm"]
license = "BUSL-1.1"
repository = "https://github.com/FuelLabs/fuel-core"
version = "0.30.0"
version = "0.31.0"

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

# Fuel dependencies
fuel-vm-private = { version = "0.55.0", package = "fuel-vm", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion bin/fuel-core/chainspec/local-testnet/chain_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
"privileged_address": "9f0e19d6c2a6283a3222426ab2630d35516b1799b503f37b02105bebe1b8a3e9"
}
},
"genesis_state_transition_version": 4,
"genesis_state_transition_version": 5,
"consensus": {
"PoA": {
"signing_key": "e0a9fcde1b73f545252e01b30b50819eb9547d07531fa3df0385c5695736634d"
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ expression: json
"privileged_address": "0000000000000000000000000000000000000000000000000000000000000000"
}
},
"genesis_state_transition_version": 4,
"genesis_state_transition_version": 5,
"consensus": {
"PoA": {
"signing_key": "22ec92c3105c942a6640bdc4e4907286ec4728e8cfc0d8ac59aad4d8e1ccaefb"
Expand Down
3 changes: 2 additions & 1 deletion crates/services/upgradable-executor/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ impl<S, R> Executor<S, R> {
("0-27-0", 1),
("0-28-0", 2),
("0-29-0", 3),
("0-30-0", LATEST_STATE_TRANSITION_VERSION),
("0-30-0", 4),
("0-31-0", LATEST_STATE_TRANSITION_VERSION),
];

pub fn new(
Expand Down
2 changes: 1 addition & 1 deletion crates/types/src/blockchain/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub type ConsensusParametersVersion = u32;
pub type StateTransitionBytecodeVersion = u32;

/// The latest version of the state transition bytecode.
pub const LATEST_STATE_TRANSITION_VERSION: StateTransitionBytecodeVersion = 4;
pub const LATEST_STATE_TRANSITION_VERSION: StateTransitionBytecodeVersion = 5;

#[derive(Copy, Clone, Debug, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
Expand Down

0 comments on commit 19d9b00

Please sign in to comment.