Skip to content

Conversation

@rafal-ch
Copy link
Contributor

@rafal-ch rafal-ch commented Feb 13, 2025

Linked Issues/PRs

Closes #2596

Description

This PR adds new GraphQL extensions to provide:

  • current STF version
  • current consensus parameters version

Example response:

{
  "data": {
    "nodeInfo": {
      "nodeVersion": "0.41.6"
    }
  },
  "extensions": {
    "current_consensus_parameters_version": 0,
    "current_fuel_block_height": 0,
    "current_stf_version": 21
  }
}

Additional housekeeping changes:

  • all graphql extensions have been moved into a subdirectory

TODO

  • Add tests to check that correct versions are returned when STF or CP are bumped
  • Rework how we retrieve the current STF version

Checklist

  • Breaking changes are clearly marked as such in the PR description and changelog
  • New behavior is reflected in tests

Before requesting review

  • I have reviewed the code myself
  • I have created follow-up issues caused by this PR and linked them here

After merging, notify other teams

Comment on lines 44 to 53
if let Ok(view) = db.view() {
if let Ok(latest_block) = view.latest_block() {
let current_stf_version =
latest_block.header().state_transition_bytecode_version();
response.extensions.insert(
CURRENT_STF_VERSION.to_string(),
Value::Number(current_stf_version.into()),
);
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We might prefer reading the current STF version directly from on chain DB table StateTransitionBytecodeVersions similarly to how it's done in BlockProducerDatabase::latest_state_transition_bytecode_version(), but I couldn't figure out how to access this in GraphQL.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to have a place where we cache this kind of information. Maybe, we could extend consensus parameters provider to also provide this kind of information, because fetch it from the database it a lot of waste work.

Copy link
Contributor

@acerone85 acerone85 Feb 17, 2025

Choose a reason for hiding this comment

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

If we do that, it might be useful to also add the block height to the information retrieved, as in this case all the extension metadata will come from the same place.

Btw, If I am not mistaken all the information we want to fetch comes from the block header right now, so maybe a HeaderProvider trait with a function that returns the whole block header, and then stf_version and consensus_parameters_version and block_height can be provided methods?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think I'll prefer to extend (and rename) the "Consensus Parameters Provider". However, I find caching the entire block header not optimal and my preference would be to cache exactly what we need. So, in addition to the current data, it'll store:

  • current STF version
  • current block height

wdyt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, the STF version is cached in the "Consensus Parameters Provider", so we do not read from the DB every time, but handling of the current block height remains unchanged from the original implementation.

@rafal-ch rafal-ch marked this pull request as ready for review February 14, 2025 11:52
@rafal-ch
Copy link
Contributor Author

We're currently attaching some substantial number of bytes to every response. Even if user requests just the node version, he will get a bunch of additional data, which, AFAIK, cannot be opted-out from.

{
  "data": {
    "nodeInfo": {
      "nodeVersion": "0.41.6"
    }
  },
  "extensions": {
    "current_consensus_parameters_version": 0,
    "current_fuel_block_height": 0,
    "current_stf_version": 21
  }
}

Not sure if this should be a concern, but I thought it's worth pointing out.

@rymnc
Copy link
Member

rymnc commented Feb 14, 2025

We're currently attaching some substantial number of bytes to every response. Even if user requests just the node version, he will get a bunch of additional data, which, AFAIK, cannot be opted-out from.

{
  "data": {
    "nodeInfo": {
      "nodeVersion": "0.41.6"
    }
  },
  "extensions": {
    "current_consensus_parameters_version": 0,
    "current_fuel_block_height": 0,
    "current_stf_version": 21
  }
}

Not sure if this should be a concern, but I thought it's worth pointing out.

we miss the whole point of graphql here, if we provide data no one asked for :(

@rafal-ch
Copy link
Contributor Author

rafal-ch commented Feb 14, 2025

we miss the whole point of graphql here, if we provide data no one asked for :(

Exactly, that's why I was thinking that we should just provide this data via some info endpoint, but IIUC, the idea here is to provide this data proactively instead of requiring users to poll regularly.

Maybe there's a way to opt out from extensions which I'm just missing.

Comment on lines 293 to 295
.extension(RequiredFuelBlockHeightExtension::new())
.extension(CurrentStfVersionExtension::new())
.extension(CurrentConsensusParametersVersionExtension::new())
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think spawning a separate extension for the field it is too overkill=D It decreases performance without any reason

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can have one extension fully dedicated to return information to the end user. Like STFV, CPV, current block height(we can remove setting of the current height from the RequiredFuelBlockHeightExtension).

In this case we will have one extension that we can use to add any metadata

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The following changes have been made:

  • Both STF and CP extensions have been merged into "chain state info" extension
  • The "chain state info" extension is now also providing data about the current block height

Comment on lines 44 to 53
if let Ok(view) = db.view() {
if let Ok(latest_block) = view.latest_block() {
let current_stf_version =
latest_block.header().state_transition_bytecode_version();
response.extensions.insert(
CURRENT_STF_VERSION.to_string(),
Value::Number(current_stf_version.into()),
);
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to have a place where we cache this kind of information. Maybe, we could extend consensus parameters provider to also provide this kind of information, because fetch it from the database it a lot of waste work.

vec![op::ret(1)].into_iter().collect::<Vec<u8>>()
}

pub fn get_graphql_extension_field_value(result_json: &str, name: &str) -> u64 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

fuel-core-client should fetch this information in the same way how it is done for the required block height. We have ExtensionsResponse where you can add several new fields.

Implementation details: In the case of the CPV and STFV we don't need any policy, we just can fetch the latest one and provide a getter

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated in ef9c445

@xgreenx
Copy link
Collaborator

xgreenx commented Feb 14, 2025

we miss the whole point of graphql here, if we provide data no one asked for :(

The extensions field is part of the GraphQL specification, and we can put there any data what we want. The user controls only the data field.

Comment on lines 406 to 409
fn decode_response<R, E>(
&self,
response: FuelGraphQlResponse<R, E>,
inner_required_height: Option<Arc<Mutex<Option<BlockHeight>>>>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you are able to use &self, then you can remove inner_required_height(move logic inside update_chain_state_info) and update everything in one function=)

Comment on lines 179 to 183
if !update_cached_value(
&self.shared_state.latest_consensus_parameters_version,
new_consensus_parameters_version,
|| self.shared_state.cache_consensus_parameters(new_consensus_parameters_version).map(|_| ())
) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

You have a deadlock here. self.shared_state.cache_consensus_parameters is doing write lock inside and update_cached_value is doing upgradable lock

Value::Number(current_consensus_parameters_version.into()),
);

let current_stf_version = consensus_parameters_provider.current_stf_version();
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: the name consensus_parameters_provider should be changed to something that indicates that we also return the stf version, but probably fine to rename it later.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I agree. Here's the follow-up issue: #2754

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Follow-up PR: #2761

/// Returns latest consensus parameters.
fn latest_consensus_params(&self) -> Arc<ConsensusParameters>;
/// Returns current consensus parameters.
fn current_consensus_params(&self) -> Arc<ConsensusParameters>;
Copy link
Contributor

Choose a reason for hiding this comment

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

not for this PR, but out of curiosity: why is this not a provided method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure, I just did the rename, didn't investigate further.

Comment on lines +49 to +53
impl<T> Clone for SharedRwLock<T> {
fn clone(&self) -> Self {
Self(self.0.clone())
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems to be equivalent to #[derive(Clone)], or am I missing something?

code generated by #[derive(Clone)]:

impl<T: core::clone::Clone> core::clone::Clone for SharedRwLock<T> {
    fn clone(&self) -> Self {
        match self {
            SharedRwLock(f0) => SharedRwLock(f0.clone()),
        }
    }
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed that custom clone is required for the SharedMutex above, which I used as a base for the SharedRwLock and I decided to just follow the pattern. In this case, it seems that the derived Clone would do the job, indeed.

Comment on lines 64 to +65
let genesis_version = 0;
let latest_stf_version = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

for consistency:

Suggested change
let genesis_version = 0;
let latest_stf_version = 0;
let genesis_consensus_parameters_version = 0;
let genesis_stf_version = 0;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll rename this in a follow-up PR in order no to block this one any longer.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Follow-up PR: #2761

Copy link
Contributor

@acerone85 acerone85 left a comment

Choose a reason for hiding this comment

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

Thanks :)
All my comments are minor and definitely not show stoppers.

@rafal-ch rafal-ch enabled auto-merge (squash) February 24, 2025 18:50
@rafal-ch rafal-ch merged commit 38e6519 into master Feb 24, 2025
34 checks passed
@rafal-ch rafal-ch deleted the rafal/2596_additional_graphql_extensions branch February 24, 2025 19:07
rymnc pushed a commit that referenced this pull request Feb 25, 2025
Closes #2754

## Description
This is a follow-up PR to the "[new GraphQL extension
data](#2715)" PR created to
solve some unaddressed comments:
- #2715 (comment)
- #2715 (comment)

The main change is: _"Renamed `ConsensusParametersProvider` to
`ChainStateInfoProvider` because it is now providing more than just info
about consensus parameters."_

Apart from that it also contains some other minor renames and a fix to
initialization of the state transition function version.

### Before requesting review
- [X] I have reviewed the code myself

---------

Co-authored-by: Green Baneling <[email protected]>
This was referenced Mar 18, 2025
rymnc pushed a commit that referenced this pull request Mar 18, 2025
## Version 0.42.0

### Breaking
- [2648](#2648): Add
feature-flagged field to block header `fault_proving_header` that
contains a commitment to all transaction ids.
- [2678](#2678): Removed
public accessors for `BlockHeader` fields and replaced with methods
instead, moved `tx_id_commitment` to the application header of
`BlockHeaderV2`.
- [2746](#2746): Breaking
changes to the CLI arguments:
- To disable `random-walk` just don't specify it. Before it required to
use `--random-walk 0`.
  - Next CLI arguments were renamed:
    - `relayer-min-duration-s` -> `relayer-min-duration`
    - `relayer-eth-sync-call-freq-s` -> `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq-s` -> `relayer-eth-sync-log-freq`
- Default value for the `heartbeat-idle-duration` was changed from `1s`
to `100ms`. So information about new block will be propagated faster by
default.
- All CLI arguments below use time(like `100ms`, `1s`, `1d`, etc.) use
as a flag argument instead of number of seconds:
    - `random-walk`
    - `connection-idle-timeout`
    - `info-interval`
    - `identify-interval`
    - `request-timeout`
    - `connection-keep-alive`
    - `heartbeat-send-duration`
    - `heartbeat-idle-duration`
    - `heartbeat-check-interval`
    - `heartbeat-max-avg-interval`
    - `heartbeat-max-time-since-last`
    - `relayer-min-duration`
    - `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq`
- [2840](#2840): CLI argument
`vm-backtrace` is deprecated and does nothing. It will be removed in a
future version of `fuel-core`.
The `extra_tx_checks` field was renamed into `forbid_fake_coins` that
affects JSON based serialization/deserialization.
Renamed `extra_tx_checks_default` field into
`forbid_fake_coins_default`.

### Added
- [2150](#2150): Upgraded
`libp2p` to `0.54.1` and introduced `ConnectionLimiter` to limit pending
incoming/outgoing connections.
- [2491](#2491): Storage read
replays of historical blocks for execution tracing. Only available
behind `--historical-execution` flag.
- [2619](#2619): Add
possibility to submit list of changes to rocksdb.
- [2666](#2666): Added two new
CLI arguments to control the GraphQL queries consistency:
`--graphql-block-height-tolerance` (default: `10`) and
`--graphql-block-height-min-timeout` (default: `30s`). If a request
requires a specific block height and the node is slightly behind, it
will wait instead of failing.
- [2682](#2682): Added GraphQL
APIs to get contract storage and balances for current and past blocks.
- [2719](#2719): Merklized DA
compression temporal registry tables.
- [2722](#2722): Service
definition for state root service.
- [2724](#2724): Explicit
error type for merkleized storage.
- [2726](#2726): Add a new
gossip-sub message for transaction preconfirmations
- [2731](#2731): Include
`TemporalRegistry` trait implementations for v2 tables.
- [2733](#2733): Add a pending
pool transaction that allow transaction to wait a bit of time if an
input is missing instead of direct delete.
- [2742](#2742): Added API
crate for merkle root service.
- [2756](#2756): Add new
service for managing pre-confirmations
- [2769](#2769): Added a new
`assembleTx` GraphQL endpoint. The endpoint can be used to assemble the
transaction based on the provided requirements.
  
  - The returned transaction contains:
    - Input coins to cover `required_balances`
- Input coins to cover the fee of the transaction based on the gas price
from `block_horizon`
    - `Change` or `Destroy` outputs for all assets from the inputs
- `Variable` outputs in the case they are required during the execution
- `Contract` inputs and outputs in the case they are required during the
execution
    - Reserved witness slots for signed coins filled with `64` zeroes
    - Set script gas limit(unless `script` is empty)
    - Estimated predicates, if `estimate_predicates == true`
  
  - Returns an error if:
- The number of required balances exceeds the maximum number of inputs
allowed.
    - The fee address index is out of bounds.
    - The same asset has multiple change policies(either the receiver of
the change is different, or one of the policies states about the
destruction
of the token while the other does not). The `Change` output from the
transaction
        also count as a `ChangePolicy`.
- The number of excluded coin IDs exceeds the maximum number of inputs
allowed.
    - Required assets have multiple entries.
- If accounts don't have sufficient amounts to cover the transaction
requirements in assets.
- If a constructed transaction breaks the rules defined by consensus
parameters.
- [2780](#2780): Add
implementations for the pre-confirmation signing task
- [2784](#2784): Integrate the
pre conf signature task into the main consensus task
- [2788](#2788): Scaffold
dedicated compression service.
- [2799](#2799): Add a
transaction waiter to the executor to wait for potential new
transactions inside the block production window.
Add a channel to send preconfirmation created by executor to the other
modules
  Added a new CLI arguments:
- `--production-timeout` to control the block production timeout in the
case if block producer stuck.
- `--poa-open-period` set the block production mode to `Open`. The
`Open` mode starts the production of the next block immediately after
the previous block. The block is open until the `period` passed. The
period is a duration represented by `100ms`, `1s`, `1m`, etc. The manual
block production is disabled if this production mode is used.
- [2802](#2802): Add a new
cache with outputs extracted from the pool for the duration of the
block.
- [2824](#2824): Introduce new
`Try`-like methods for the `TaskNextAction`
- [2840](#2840): Added a new
CLI arguments:
- `assemble-tx-dry-run-limit` - The max number how many times script can
be executed during `assemble_tx` GraphQL request. Default value is `3`
times.
- `assemble-tx-estimate-predicates-limit` - The max number how many
times predicates can be estimated during `assemble_tx` GraphQL request.
Default values is `10` times.
- [2841](#2841): Following
endpoints allow estimation of predicates on submission of the
transaction via new `estimatePredicates` argument:
  - `submit`
  - `submit_and_await`
  - `submit_and_await_status`
  
The change is backward compatible with all SDKs. The change is not
forward-compatible with Rust SDK in the case of the
`estiamte_predicates` flag set.
- [2844](#2844): Implement DA
compression in `fuel-core-compression-service`.
- [2845](#2845): New status to
manage the pre confirmation status send in `TxUpdateSender`.
- [2855](#2855): Add an
expiration interval check for pending pool and refactor
extracted_outputs to not rely on block creation/process sequence.
- [2856](#2856): Add generic
logic for managing the signatures and delegate keys for
pre-confirmations signatures
- [2862](#2862): Derive
`enum_iterator::Sequence` and `strum_macros::{EnumCount, IntoStaticStr}`
for MerkleizedColumn.

### Changed
- [2388](#2388): Rework the
P2P service codecs to avoid unnecessary coupling between components. The
refactoring makes it explicit that the Gossipsub and RequestResponse
codecs only share encoding/decoding functionalities from the Postcard
codec. It also makes handling Gossipsub and RequestResponse messages
completely independent of each other.
- [2460](#2460): The type of
the `max_response_size`for the postcard codec used in `RequestResponse`
protocols has been changed from `usize` to `u64`.
- [2473](#2473): Graphql
requests and responses make use of a new `extensions` object to specify
request/response metadata. A request `extensions` object can contain an
integer-valued `required_fuel_block_height` field. When specified, the
request will return an error unless the node's current fuel block height
is at least the value specified in the `required_fuel_block_height`
field. All graphql responses now contain an integer-valued
`current_fuel_block_height` field in the `extensions` object, which
contains the block height of the last block processed by the node.
- [2618](#2618): Parallelize
block/transaction changes creation in Importer
- [2653](#2653): Added cleaner
error for wasm-executor upon failed deserialization.
- [2656](#2656): Migrate test
helper function `create_contract` to
`fuel_core_types::test_helpers::create_contract`, and refactor test in
proof_system/global_merkle_root crate to use this function.
- [2659](#2659): Replace
`derivative` crate with `educe` crate.
- [2705](#2705): Update the
default value for `--max-block-size` and `--max-transmit-size` to 50 MB
- [2715](#2715): Each GraphQL
response contains `current_consensus_parameters_version` and
`current_stf_version` in the `extensions` section.
- [2723](#2723): Change the
way we are building the changelog to avoids conflicts.
- [2725](#2725): New txpool
worker to remove lock contention
- [2752](#2752): Extended the
`TransactionStatus` to support pre-confirmations.
- [2761](#2761): Renamed
`ConsensusParametersProvider` to `ChainStateInfoProvider` because it is
now providing more than just info about consensus parameters.
- [2767](#2767): Updated
fuel-vm to v0.60.0, see [release
notes](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.60.0).
- [2781](#2781): Deprecate
`dryRun` mutation. Use `dryRun` query instead.
- [2791](#2791): Added
`TxStatusManager` service which serves as a single source of truth
regarding the current statuses of transactions
- [2793](#2793): Moved common
merkle storage trait implementations to `fuel-core-storage` and made it
easier to setup a set of columns that need merkleization.
- [2799](#2799): Change the
block production to not be trigger after an interval but directly after
the creation of last block and let the executor run for the block time
window.
- [2800](#2800): Implement P2P
adapter for preconfirmation broadcasting
- [2802](#2802): Change new
txs notifier to be notified only on executable transactions
- [2811](#2811): When the
state rewind window of 7d was triggered, the `is_migration_in_progress`
was repeatedly called, resulting in multiple iterations over the empty
ModificationsHistoryV1 table. Iteration was slow because compaction
didn't have a chance to clean up V1 table. We removed iteration from the
migration process.
- [2824](#2824): Improve
conditions where `Error`s in the `PreConfirmationSignatureTask` stop the
service
- [2840](#2840): Removed
`log_backtrace` logic from the executor. It is not needed anymore with
the existence of the local debugger for the transactions.
- [2865](#2865): Consider the
following transaction statuses as final: `Success`, `Failure`,
`SqueezedOut`, `PreConfirmationSqueezedOut`. All other statuses will be
considered transient.

### Fixed
- [2646](#2646): Improved
performance of fetching block height by caching it when the view is
created.
- [2682](#2682): Fixed the
issue with RPC consistency feature for the subscriptions(without the fix
first we perform the logic of the query, and only after verify the
required height).
- [2730](#2730): Fixed RocksDB
closing issue that potentially could panic.
- [2743](#2743): Allow
discovery of the peers when slots for functional connections are
consumed. Reserved nodes are not affected by the limitation on
connections anymore.
- [2746](#2746): Fixed flaky
part in the e2e tests and version compatibility tests. Speed up
compatibility tests execution time. Decreased the default time between
block height propagation throw the network.
- [2758](#2758): Made
`tx_id_commitment` feature flagged in `fuel-core-client`.
- [2832](#2832): - Trigger
block production only when all other sub services are started.
- Fix relayer syncing issue causing block production to slow down
occasionally.
- [2840](#2840): Fixed
`fuel-core-client` receipt deserialization in the case if the
`ContractId` is zero.

### Removed
- [2863](#2863): Removed
everything related to the state root service, as it has been moved to
another repo.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: AurelienFT <[email protected]>
kuroki-yosuke added a commit to kuroki-yosuke/core-fuel that referenced this pull request Apr 5, 2025
Closes FuelLabs/fuel-core#2754

## Description
This is a follow-up PR to the "[new GraphQL extension
data](FuelLabs/fuel-core#2715)" PR created to
solve some unaddressed comments:
- FuelLabs/fuel-core#2715 (comment)
- FuelLabs/fuel-core#2715 (comment)

The main change is: _"Renamed `ConsensusParametersProvider` to
`ChainStateInfoProvider` because it is now providing more than just info
about consensus parameters."_

Apart from that it also contains some other minor renames and a fix to
initialization of the state transition function version.

### Before requesting review
- [X] I have reviewed the code myself

---------

Co-authored-by: Green Baneling <[email protected]>
kuroki-yosuke added a commit to kuroki-yosuke/core-fuel that referenced this pull request Apr 5, 2025
## Version 0.42.0

### Breaking
- [2648](FuelLabs/fuel-core#2648): Add
feature-flagged field to block header `fault_proving_header` that
contains a commitment to all transaction ids.
- [2678](FuelLabs/fuel-core#2678): Removed
public accessors for `BlockHeader` fields and replaced with methods
instead, moved `tx_id_commitment` to the application header of
`BlockHeaderV2`.
- [2746](FuelLabs/fuel-core#2746): Breaking
changes to the CLI arguments:
- To disable `random-walk` just don't specify it. Before it required to
use `--random-walk 0`.
  - Next CLI arguments were renamed:
    - `relayer-min-duration-s` -> `relayer-min-duration`
    - `relayer-eth-sync-call-freq-s` -> `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq-s` -> `relayer-eth-sync-log-freq`
- Default value for the `heartbeat-idle-duration` was changed from `1s`
to `100ms`. So information about new block will be propagated faster by
default.
- All CLI arguments below use time(like `100ms`, `1s`, `1d`, etc.) use
as a flag argument instead of number of seconds:
    - `random-walk`
    - `connection-idle-timeout`
    - `info-interval`
    - `identify-interval`
    - `request-timeout`
    - `connection-keep-alive`
    - `heartbeat-send-duration`
    - `heartbeat-idle-duration`
    - `heartbeat-check-interval`
    - `heartbeat-max-avg-interval`
    - `heartbeat-max-time-since-last`
    - `relayer-min-duration`
    - `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq`
- [2840](FuelLabs/fuel-core#2840): CLI argument
`vm-backtrace` is deprecated and does nothing. It will be removed in a
future version of `fuel-core`.
The `extra_tx_checks` field was renamed into `forbid_fake_coins` that
affects JSON based serialization/deserialization.
Renamed `extra_tx_checks_default` field into
`forbid_fake_coins_default`.

### Added
- [2150](FuelLabs/fuel-core#2150): Upgraded
`libp2p` to `0.54.1` and introduced `ConnectionLimiter` to limit pending
incoming/outgoing connections.
- [2491](FuelLabs/fuel-core#2491): Storage read
replays of historical blocks for execution tracing. Only available
behind `--historical-execution` flag.
- [2619](FuelLabs/fuel-core#2619): Add
possibility to submit list of changes to rocksdb.
- [2666](FuelLabs/fuel-core#2666): Added two new
CLI arguments to control the GraphQL queries consistency:
`--graphql-block-height-tolerance` (default: `10`) and
`--graphql-block-height-min-timeout` (default: `30s`). If a request
requires a specific block height and the node is slightly behind, it
will wait instead of failing.
- [2682](FuelLabs/fuel-core#2682): Added GraphQL
APIs to get contract storage and balances for current and past blocks.
- [2719](FuelLabs/fuel-core#2719): Merklized DA
compression temporal registry tables.
- [2722](FuelLabs/fuel-core#2722): Service
definition for state root service.
- [2724](FuelLabs/fuel-core#2724): Explicit
error type for merkleized storage.
- [2726](FuelLabs/fuel-core#2726): Add a new
gossip-sub message for transaction preconfirmations
- [2731](FuelLabs/fuel-core#2731): Include
`TemporalRegistry` trait implementations for v2 tables.
- [2733](FuelLabs/fuel-core#2733): Add a pending
pool transaction that allow transaction to wait a bit of time if an
input is missing instead of direct delete.
- [2742](FuelLabs/fuel-core#2742): Added API
crate for merkle root service.
- [2756](FuelLabs/fuel-core#2756): Add new
service for managing pre-confirmations
- [2769](FuelLabs/fuel-core#2769): Added a new
`assembleTx` GraphQL endpoint. The endpoint can be used to assemble the
transaction based on the provided requirements.
  
  - The returned transaction contains:
    - Input coins to cover `required_balances`
- Input coins to cover the fee of the transaction based on the gas price
from `block_horizon`
    - `Change` or `Destroy` outputs for all assets from the inputs
- `Variable` outputs in the case they are required during the execution
- `Contract` inputs and outputs in the case they are required during the
execution
    - Reserved witness slots for signed coins filled with `64` zeroes
    - Set script gas limit(unless `script` is empty)
    - Estimated predicates, if `estimate_predicates == true`
  
  - Returns an error if:
- The number of required balances exceeds the maximum number of inputs
allowed.
    - The fee address index is out of bounds.
    - The same asset has multiple change policies(either the receiver of
the change is different, or one of the policies states about the
destruction
of the token while the other does not). The `Change` output from the
transaction
        also count as a `ChangePolicy`.
- The number of excluded coin IDs exceeds the maximum number of inputs
allowed.
    - Required assets have multiple entries.
- If accounts don't have sufficient amounts to cover the transaction
requirements in assets.
- If a constructed transaction breaks the rules defined by consensus
parameters.
- [2780](FuelLabs/fuel-core#2780): Add
implementations for the pre-confirmation signing task
- [2784](FuelLabs/fuel-core#2784): Integrate the
pre conf signature task into the main consensus task
- [2788](FuelLabs/fuel-core#2788): Scaffold
dedicated compression service.
- [2799](FuelLabs/fuel-core#2799): Add a
transaction waiter to the executor to wait for potential new
transactions inside the block production window.
Add a channel to send preconfirmation created by executor to the other
modules
  Added a new CLI arguments:
- `--production-timeout` to control the block production timeout in the
case if block producer stuck.
- `--poa-open-period` set the block production mode to `Open`. The
`Open` mode starts the production of the next block immediately after
the previous block. The block is open until the `period` passed. The
period is a duration represented by `100ms`, `1s`, `1m`, etc. The manual
block production is disabled if this production mode is used.
- [2802](FuelLabs/fuel-core#2802): Add a new
cache with outputs extracted from the pool for the duration of the
block.
- [2824](FuelLabs/fuel-core#2824): Introduce new
`Try`-like methods for the `TaskNextAction`
- [2840](FuelLabs/fuel-core#2840): Added a new
CLI arguments:
- `assemble-tx-dry-run-limit` - The max number how many times script can
be executed during `assemble_tx` GraphQL request. Default value is `3`
times.
- `assemble-tx-estimate-predicates-limit` - The max number how many
times predicates can be estimated during `assemble_tx` GraphQL request.
Default values is `10` times.
- [2841](FuelLabs/fuel-core#2841): Following
endpoints allow estimation of predicates on submission of the
transaction via new `estimatePredicates` argument:
  - `submit`
  - `submit_and_await`
  - `submit_and_await_status`
  
The change is backward compatible with all SDKs. The change is not
forward-compatible with Rust SDK in the case of the
`estiamte_predicates` flag set.
- [2844](FuelLabs/fuel-core#2844): Implement DA
compression in `fuel-core-compression-service`.
- [2845](FuelLabs/fuel-core#2845): New status to
manage the pre confirmation status send in `TxUpdateSender`.
- [2855](FuelLabs/fuel-core#2855): Add an
expiration interval check for pending pool and refactor
extracted_outputs to not rely on block creation/process sequence.
- [2856](FuelLabs/fuel-core#2856): Add generic
logic for managing the signatures and delegate keys for
pre-confirmations signatures
- [2862](FuelLabs/fuel-core#2862): Derive
`enum_iterator::Sequence` and `strum_macros::{EnumCount, IntoStaticStr}`
for MerkleizedColumn.

### Changed
- [2388](FuelLabs/fuel-core#2388): Rework the
P2P service codecs to avoid unnecessary coupling between components. The
refactoring makes it explicit that the Gossipsub and RequestResponse
codecs only share encoding/decoding functionalities from the Postcard
codec. It also makes handling Gossipsub and RequestResponse messages
completely independent of each other.
- [2460](FuelLabs/fuel-core#2460): The type of
the `max_response_size`for the postcard codec used in `RequestResponse`
protocols has been changed from `usize` to `u64`.
- [2473](FuelLabs/fuel-core#2473): Graphql
requests and responses make use of a new `extensions` object to specify
request/response metadata. A request `extensions` object can contain an
integer-valued `required_fuel_block_height` field. When specified, the
request will return an error unless the node's current fuel block height
is at least the value specified in the `required_fuel_block_height`
field. All graphql responses now contain an integer-valued
`current_fuel_block_height` field in the `extensions` object, which
contains the block height of the last block processed by the node.
- [2618](FuelLabs/fuel-core#2618): Parallelize
block/transaction changes creation in Importer
- [2653](FuelLabs/fuel-core#2653): Added cleaner
error for wasm-executor upon failed deserialization.
- [2656](FuelLabs/fuel-core#2656): Migrate test
helper function `create_contract` to
`fuel_core_types::test_helpers::create_contract`, and refactor test in
proof_system/global_merkle_root crate to use this function.
- [2659](FuelLabs/fuel-core#2659): Replace
`derivative` crate with `educe` crate.
- [2705](FuelLabs/fuel-core#2705): Update the
default value for `--max-block-size` and `--max-transmit-size` to 50 MB
- [2715](FuelLabs/fuel-core#2715): Each GraphQL
response contains `current_consensus_parameters_version` and
`current_stf_version` in the `extensions` section.
- [2723](FuelLabs/fuel-core#2723): Change the
way we are building the changelog to avoids conflicts.
- [2725](FuelLabs/fuel-core#2725): New txpool
worker to remove lock contention
- [2752](FuelLabs/fuel-core#2752): Extended the
`TransactionStatus` to support pre-confirmations.
- [2761](FuelLabs/fuel-core#2761): Renamed
`ConsensusParametersProvider` to `ChainStateInfoProvider` because it is
now providing more than just info about consensus parameters.
- [2767](FuelLabs/fuel-core#2767): Updated
fuel-vm to v0.60.0, see [release
notes](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.60.0).
- [2781](FuelLabs/fuel-core#2781): Deprecate
`dryRun` mutation. Use `dryRun` query instead.
- [2791](FuelLabs/fuel-core#2791): Added
`TxStatusManager` service which serves as a single source of truth
regarding the current statuses of transactions
- [2793](FuelLabs/fuel-core#2793): Moved common
merkle storage trait implementations to `fuel-core-storage` and made it
easier to setup a set of columns that need merkleization.
- [2799](FuelLabs/fuel-core#2799): Change the
block production to not be trigger after an interval but directly after
the creation of last block and let the executor run for the block time
window.
- [2800](FuelLabs/fuel-core#2800): Implement P2P
adapter for preconfirmation broadcasting
- [2802](FuelLabs/fuel-core#2802): Change new
txs notifier to be notified only on executable transactions
- [2811](FuelLabs/fuel-core#2811): When the
state rewind window of 7d was triggered, the `is_migration_in_progress`
was repeatedly called, resulting in multiple iterations over the empty
ModificationsHistoryV1 table. Iteration was slow because compaction
didn't have a chance to clean up V1 table. We removed iteration from the
migration process.
- [2824](FuelLabs/fuel-core#2824): Improve
conditions where `Error`s in the `PreConfirmationSignatureTask` stop the
service
- [2840](FuelLabs/fuel-core#2840): Removed
`log_backtrace` logic from the executor. It is not needed anymore with
the existence of the local debugger for the transactions.
- [2865](FuelLabs/fuel-core#2865): Consider the
following transaction statuses as final: `Success`, `Failure`,
`SqueezedOut`, `PreConfirmationSqueezedOut`. All other statuses will be
considered transient.

### Fixed
- [2646](FuelLabs/fuel-core#2646): Improved
performance of fetching block height by caching it when the view is
created.
- [2682](FuelLabs/fuel-core#2682): Fixed the
issue with RPC consistency feature for the subscriptions(without the fix
first we perform the logic of the query, and only after verify the
required height).
- [2730](FuelLabs/fuel-core#2730): Fixed RocksDB
closing issue that potentially could panic.
- [2743](FuelLabs/fuel-core#2743): Allow
discovery of the peers when slots for functional connections are
consumed. Reserved nodes are not affected by the limitation on
connections anymore.
- [2746](FuelLabs/fuel-core#2746): Fixed flaky
part in the e2e tests and version compatibility tests. Speed up
compatibility tests execution time. Decreased the default time between
block height propagation throw the network.
- [2758](FuelLabs/fuel-core#2758): Made
`tx_id_commitment` feature flagged in `fuel-core-client`.
- [2832](FuelLabs/fuel-core#2832): - Trigger
block production only when all other sub services are started.
- Fix relayer syncing issue causing block production to slow down
occasionally.
- [2840](FuelLabs/fuel-core#2840): Fixed
`fuel-core-client` receipt deserialization in the case if the
`ContractId` is zero.

### Removed
- [2863](FuelLabs/fuel-core#2863): Removed
everything related to the state root service, as it has been moved to
another repo.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: AurelienFT <[email protected]>
ChapmaBeerbohm added a commit to ChapmaBeerbohm/holo-kit that referenced this pull request Sep 26, 2025
Closes FuelLabs/fuel-core#2754

## Description
This is a follow-up PR to the "[new GraphQL extension
data](FuelLabs/fuel-core#2715)" PR created to
solve some unaddressed comments:
- FuelLabs/fuel-core#2715 (comment)
- FuelLabs/fuel-core#2715 (comment)

The main change is: _"Renamed `ConsensusParametersProvider` to
`ChainStateInfoProvider` because it is now providing more than just info
about consensus parameters."_

Apart from that it also contains some other minor renames and a fix to
initialization of the state transition function version.

### Before requesting review
- [X] I have reviewed the code myself

---------

Co-authored-by: Green Baneling <[email protected]>
ChapmaBeerbohm added a commit to ChapmaBeerbohm/holo-kit that referenced this pull request Sep 26, 2025
## Version 0.42.0

### Breaking
- [2648](FuelLabs/fuel-core#2648): Add
feature-flagged field to block header `fault_proving_header` that
contains a commitment to all transaction ids.
- [2678](FuelLabs/fuel-core#2678): Removed
public accessors for `BlockHeader` fields and replaced with methods
instead, moved `tx_id_commitment` to the application header of
`BlockHeaderV2`.
- [2746](FuelLabs/fuel-core#2746): Breaking
changes to the CLI arguments:
- To disable `random-walk` just don't specify it. Before it required to
use `--random-walk 0`.
  - Next CLI arguments were renamed:
    - `relayer-min-duration-s` -> `relayer-min-duration`
    - `relayer-eth-sync-call-freq-s` -> `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq-s` -> `relayer-eth-sync-log-freq`
- Default value for the `heartbeat-idle-duration` was changed from `1s`
to `100ms`. So information about new block will be propagated faster by
default.
- All CLI arguments below use time(like `100ms`, `1s`, `1d`, etc.) use
as a flag argument instead of number of seconds:
    - `random-walk`
    - `connection-idle-timeout`
    - `info-interval`
    - `identify-interval`
    - `request-timeout`
    - `connection-keep-alive`
    - `heartbeat-send-duration`
    - `heartbeat-idle-duration`
    - `heartbeat-check-interval`
    - `heartbeat-max-avg-interval`
    - `heartbeat-max-time-since-last`
    - `relayer-min-duration`
    - `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq`
- [2840](FuelLabs/fuel-core#2840): CLI argument
`vm-backtrace` is deprecated and does nothing. It will be removed in a
future version of `fuel-core`.
The `extra_tx_checks` field was renamed into `forbid_fake_coins` that
affects JSON based serialization/deserialization.
Renamed `extra_tx_checks_default` field into
`forbid_fake_coins_default`.

### Added
- [2150](FuelLabs/fuel-core#2150): Upgraded
`libp2p` to `0.54.1` and introduced `ConnectionLimiter` to limit pending
incoming/outgoing connections.
- [2491](FuelLabs/fuel-core#2491): Storage read
replays of historical blocks for execution tracing. Only available
behind `--historical-execution` flag.
- [2619](FuelLabs/fuel-core#2619): Add
possibility to submit list of changes to rocksdb.
- [2666](FuelLabs/fuel-core#2666): Added two new
CLI arguments to control the GraphQL queries consistency:
`--graphql-block-height-tolerance` (default: `10`) and
`--graphql-block-height-min-timeout` (default: `30s`). If a request
requires a specific block height and the node is slightly behind, it
will wait instead of failing.
- [2682](FuelLabs/fuel-core#2682): Added GraphQL
APIs to get contract storage and balances for current and past blocks.
- [2719](FuelLabs/fuel-core#2719): Merklized DA
compression temporal registry tables.
- [2722](FuelLabs/fuel-core#2722): Service
definition for state root service.
- [2724](FuelLabs/fuel-core#2724): Explicit
error type for merkleized storage.
- [2726](FuelLabs/fuel-core#2726): Add a new
gossip-sub message for transaction preconfirmations
- [2731](FuelLabs/fuel-core#2731): Include
`TemporalRegistry` trait implementations for v2 tables.
- [2733](FuelLabs/fuel-core#2733): Add a pending
pool transaction that allow transaction to wait a bit of time if an
input is missing instead of direct delete.
- [2742](FuelLabs/fuel-core#2742): Added API
crate for merkle root service.
- [2756](FuelLabs/fuel-core#2756): Add new
service for managing pre-confirmations
- [2769](FuelLabs/fuel-core#2769): Added a new
`assembleTx` GraphQL endpoint. The endpoint can be used to assemble the
transaction based on the provided requirements.
  
  - The returned transaction contains:
    - Input coins to cover `required_balances`
- Input coins to cover the fee of the transaction based on the gas price
from `block_horizon`
    - `Change` or `Destroy` outputs for all assets from the inputs
- `Variable` outputs in the case they are required during the execution
- `Contract` inputs and outputs in the case they are required during the
execution
    - Reserved witness slots for signed coins filled with `64` zeroes
    - Set script gas limit(unless `script` is empty)
    - Estimated predicates, if `estimate_predicates == true`
  
  - Returns an error if:
- The number of required balances exceeds the maximum number of inputs
allowed.
    - The fee address index is out of bounds.
    - The same asset has multiple change policies(either the receiver of
the change is different, or one of the policies states about the
destruction
of the token while the other does not). The `Change` output from the
transaction
        also count as a `ChangePolicy`.
- The number of excluded coin IDs exceeds the maximum number of inputs
allowed.
    - Required assets have multiple entries.
- If accounts don't have sufficient amounts to cover the transaction
requirements in assets.
- If a constructed transaction breaks the rules defined by consensus
parameters.
- [2780](FuelLabs/fuel-core#2780): Add
implementations for the pre-confirmation signing task
- [2784](FuelLabs/fuel-core#2784): Integrate the
pre conf signature task into the main consensus task
- [2788](FuelLabs/fuel-core#2788): Scaffold
dedicated compression service.
- [2799](FuelLabs/fuel-core#2799): Add a
transaction waiter to the executor to wait for potential new
transactions inside the block production window.
Add a channel to send preconfirmation created by executor to the other
modules
  Added a new CLI arguments:
- `--production-timeout` to control the block production timeout in the
case if block producer stuck.
- `--poa-open-period` set the block production mode to `Open`. The
`Open` mode starts the production of the next block immediately after
the previous block. The block is open until the `period` passed. The
period is a duration represented by `100ms`, `1s`, `1m`, etc. The manual
block production is disabled if this production mode is used.
- [2802](FuelLabs/fuel-core#2802): Add a new
cache with outputs extracted from the pool for the duration of the
block.
- [2824](FuelLabs/fuel-core#2824): Introduce new
`Try`-like methods for the `TaskNextAction`
- [2840](FuelLabs/fuel-core#2840): Added a new
CLI arguments:
- `assemble-tx-dry-run-limit` - The max number how many times script can
be executed during `assemble_tx` GraphQL request. Default value is `3`
times.
- `assemble-tx-estimate-predicates-limit` - The max number how many
times predicates can be estimated during `assemble_tx` GraphQL request.
Default values is `10` times.
- [2841](FuelLabs/fuel-core#2841): Following
endpoints allow estimation of predicates on submission of the
transaction via new `estimatePredicates` argument:
  - `submit`
  - `submit_and_await`
  - `submit_and_await_status`
  
The change is backward compatible with all SDKs. The change is not
forward-compatible with Rust SDK in the case of the
`estiamte_predicates` flag set.
- [2844](FuelLabs/fuel-core#2844): Implement DA
compression in `fuel-core-compression-service`.
- [2845](FuelLabs/fuel-core#2845): New status to
manage the pre confirmation status send in `TxUpdateSender`.
- [2855](FuelLabs/fuel-core#2855): Add an
expiration interval check for pending pool and refactor
extracted_outputs to not rely on block creation/process sequence.
- [2856](FuelLabs/fuel-core#2856): Add generic
logic for managing the signatures and delegate keys for
pre-confirmations signatures
- [2862](FuelLabs/fuel-core#2862): Derive
`enum_iterator::Sequence` and `strum_macros::{EnumCount, IntoStaticStr}`
for MerkleizedColumn.

### Changed
- [2388](FuelLabs/fuel-core#2388): Rework the
P2P service codecs to avoid unnecessary coupling between components. The
refactoring makes it explicit that the Gossipsub and RequestResponse
codecs only share encoding/decoding functionalities from the Postcard
codec. It also makes handling Gossipsub and RequestResponse messages
completely independent of each other.
- [2460](FuelLabs/fuel-core#2460): The type of
the `max_response_size`for the postcard codec used in `RequestResponse`
protocols has been changed from `usize` to `u64`.
- [2473](FuelLabs/fuel-core#2473): Graphql
requests and responses make use of a new `extensions` object to specify
request/response metadata. A request `extensions` object can contain an
integer-valued `required_fuel_block_height` field. When specified, the
request will return an error unless the node's current fuel block height
is at least the value specified in the `required_fuel_block_height`
field. All graphql responses now contain an integer-valued
`current_fuel_block_height` field in the `extensions` object, which
contains the block height of the last block processed by the node.
- [2618](FuelLabs/fuel-core#2618): Parallelize
block/transaction changes creation in Importer
- [2653](FuelLabs/fuel-core#2653): Added cleaner
error for wasm-executor upon failed deserialization.
- [2656](FuelLabs/fuel-core#2656): Migrate test
helper function `create_contract` to
`fuel_core_types::test_helpers::create_contract`, and refactor test in
proof_system/global_merkle_root crate to use this function.
- [2659](FuelLabs/fuel-core#2659): Replace
`derivative` crate with `educe` crate.
- [2705](FuelLabs/fuel-core#2705): Update the
default value for `--max-block-size` and `--max-transmit-size` to 50 MB
- [2715](FuelLabs/fuel-core#2715): Each GraphQL
response contains `current_consensus_parameters_version` and
`current_stf_version` in the `extensions` section.
- [2723](FuelLabs/fuel-core#2723): Change the
way we are building the changelog to avoids conflicts.
- [2725](FuelLabs/fuel-core#2725): New txpool
worker to remove lock contention
- [2752](FuelLabs/fuel-core#2752): Extended the
`TransactionStatus` to support pre-confirmations.
- [2761](FuelLabs/fuel-core#2761): Renamed
`ConsensusParametersProvider` to `ChainStateInfoProvider` because it is
now providing more than just info about consensus parameters.
- [2767](FuelLabs/fuel-core#2767): Updated
fuel-vm to v0.60.0, see [release
notes](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.60.0).
- [2781](FuelLabs/fuel-core#2781): Deprecate
`dryRun` mutation. Use `dryRun` query instead.
- [2791](FuelLabs/fuel-core#2791): Added
`TxStatusManager` service which serves as a single source of truth
regarding the current statuses of transactions
- [2793](FuelLabs/fuel-core#2793): Moved common
merkle storage trait implementations to `fuel-core-storage` and made it
easier to setup a set of columns that need merkleization.
- [2799](FuelLabs/fuel-core#2799): Change the
block production to not be trigger after an interval but directly after
the creation of last block and let the executor run for the block time
window.
- [2800](FuelLabs/fuel-core#2800): Implement P2P
adapter for preconfirmation broadcasting
- [2802](FuelLabs/fuel-core#2802): Change new
txs notifier to be notified only on executable transactions
- [2811](FuelLabs/fuel-core#2811): When the
state rewind window of 7d was triggered, the `is_migration_in_progress`
was repeatedly called, resulting in multiple iterations over the empty
ModificationsHistoryV1 table. Iteration was slow because compaction
didn't have a chance to clean up V1 table. We removed iteration from the
migration process.
- [2824](FuelLabs/fuel-core#2824): Improve
conditions where `Error`s in the `PreConfirmationSignatureTask` stop the
service
- [2840](FuelLabs/fuel-core#2840): Removed
`log_backtrace` logic from the executor. It is not needed anymore with
the existence of the local debugger for the transactions.
- [2865](FuelLabs/fuel-core#2865): Consider the
following transaction statuses as final: `Success`, `Failure`,
`SqueezedOut`, `PreConfirmationSqueezedOut`. All other statuses will be
considered transient.

### Fixed
- [2646](FuelLabs/fuel-core#2646): Improved
performance of fetching block height by caching it when the view is
created.
- [2682](FuelLabs/fuel-core#2682): Fixed the
issue with RPC consistency feature for the subscriptions(without the fix
first we perform the logic of the query, and only after verify the
required height).
- [2730](FuelLabs/fuel-core#2730): Fixed RocksDB
closing issue that potentially could panic.
- [2743](FuelLabs/fuel-core#2743): Allow
discovery of the peers when slots for functional connections are
consumed. Reserved nodes are not affected by the limitation on
connections anymore.
- [2746](FuelLabs/fuel-core#2746): Fixed flaky
part in the e2e tests and version compatibility tests. Speed up
compatibility tests execution time. Decreased the default time between
block height propagation throw the network.
- [2758](FuelLabs/fuel-core#2758): Made
`tx_id_commitment` feature flagged in `fuel-core-client`.
- [2832](FuelLabs/fuel-core#2832): - Trigger
block production only when all other sub services are started.
- Fix relayer syncing issue causing block production to slow down
occasionally.
- [2840](FuelLabs/fuel-core#2840): Fixed
`fuel-core-client` receipt deserialization in the case if the
`ContractId` is zero.

### Removed
- [2863](FuelLabs/fuel-core#2863): Removed
everything related to the state root service, as it has been moved to
another repo.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: AurelienFT <[email protected]>
GeorgeBake added a commit to GeorgeBake/pipeline-cli that referenced this pull request Sep 29, 2025
Closes FuelLabs/fuel-core#2754

## Description
This is a follow-up PR to the "[new GraphQL extension
data](FuelLabs/fuel-core#2715)" PR created to
solve some unaddressed comments:
- FuelLabs/fuel-core#2715 (comment)
- FuelLabs/fuel-core#2715 (comment)

The main change is: _"Renamed `ConsensusParametersProvider` to
`ChainStateInfoProvider` because it is now providing more than just info
about consensus parameters."_

Apart from that it also contains some other minor renames and a fix to
initialization of the state transition function version.

### Before requesting review
- [X] I have reviewed the code myself

---------

Co-authored-by: Green Baneling <[email protected]>
GeorgeBake added a commit to GeorgeBake/pipeline-cli that referenced this pull request Sep 29, 2025
## Version 0.42.0

### Breaking
- [2648](FuelLabs/fuel-core#2648): Add
feature-flagged field to block header `fault_proving_header` that
contains a commitment to all transaction ids.
- [2678](FuelLabs/fuel-core#2678): Removed
public accessors for `BlockHeader` fields and replaced with methods
instead, moved `tx_id_commitment` to the application header of
`BlockHeaderV2`.
- [2746](FuelLabs/fuel-core#2746): Breaking
changes to the CLI arguments:
- To disable `random-walk` just don't specify it. Before it required to
use `--random-walk 0`.
  - Next CLI arguments were renamed:
    - `relayer-min-duration-s` -> `relayer-min-duration`
    - `relayer-eth-sync-call-freq-s` -> `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq-s` -> `relayer-eth-sync-log-freq`
- Default value for the `heartbeat-idle-duration` was changed from `1s`
to `100ms`. So information about new block will be propagated faster by
default.
- All CLI arguments below use time(like `100ms`, `1s`, `1d`, etc.) use
as a flag argument instead of number of seconds:
    - `random-walk`
    - `connection-idle-timeout`
    - `info-interval`
    - `identify-interval`
    - `request-timeout`
    - `connection-keep-alive`
    - `heartbeat-send-duration`
    - `heartbeat-idle-duration`
    - `heartbeat-check-interval`
    - `heartbeat-max-avg-interval`
    - `heartbeat-max-time-since-last`
    - `relayer-min-duration`
    - `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq`
- [2840](FuelLabs/fuel-core#2840): CLI argument
`vm-backtrace` is deprecated and does nothing. It will be removed in a
future version of `fuel-core`.
The `extra_tx_checks` field was renamed into `forbid_fake_coins` that
affects JSON based serialization/deserialization.
Renamed `extra_tx_checks_default` field into
`forbid_fake_coins_default`.

### Added
- [2150](FuelLabs/fuel-core#2150): Upgraded
`libp2p` to `0.54.1` and introduced `ConnectionLimiter` to limit pending
incoming/outgoing connections.
- [2491](FuelLabs/fuel-core#2491): Storage read
replays of historical blocks for execution tracing. Only available
behind `--historical-execution` flag.
- [2619](FuelLabs/fuel-core#2619): Add
possibility to submit list of changes to rocksdb.
- [2666](FuelLabs/fuel-core#2666): Added two new
CLI arguments to control the GraphQL queries consistency:
`--graphql-block-height-tolerance` (default: `10`) and
`--graphql-block-height-min-timeout` (default: `30s`). If a request
requires a specific block height and the node is slightly behind, it
will wait instead of failing.
- [2682](FuelLabs/fuel-core#2682): Added GraphQL
APIs to get contract storage and balances for current and past blocks.
- [2719](FuelLabs/fuel-core#2719): Merklized DA
compression temporal registry tables.
- [2722](FuelLabs/fuel-core#2722): Service
definition for state root service.
- [2724](FuelLabs/fuel-core#2724): Explicit
error type for merkleized storage.
- [2726](FuelLabs/fuel-core#2726): Add a new
gossip-sub message for transaction preconfirmations
- [2731](FuelLabs/fuel-core#2731): Include
`TemporalRegistry` trait implementations for v2 tables.
- [2733](FuelLabs/fuel-core#2733): Add a pending
pool transaction that allow transaction to wait a bit of time if an
input is missing instead of direct delete.
- [2742](FuelLabs/fuel-core#2742): Added API
crate for merkle root service.
- [2756](FuelLabs/fuel-core#2756): Add new
service for managing pre-confirmations
- [2769](FuelLabs/fuel-core#2769): Added a new
`assembleTx` GraphQL endpoint. The endpoint can be used to assemble the
transaction based on the provided requirements.
  
  - The returned transaction contains:
    - Input coins to cover `required_balances`
- Input coins to cover the fee of the transaction based on the gas price
from `block_horizon`
    - `Change` or `Destroy` outputs for all assets from the inputs
- `Variable` outputs in the case they are required during the execution
- `Contract` inputs and outputs in the case they are required during the
execution
    - Reserved witness slots for signed coins filled with `64` zeroes
    - Set script gas limit(unless `script` is empty)
    - Estimated predicates, if `estimate_predicates == true`
  
  - Returns an error if:
- The number of required balances exceeds the maximum number of inputs
allowed.
    - The fee address index is out of bounds.
    - The same asset has multiple change policies(either the receiver of
the change is different, or one of the policies states about the
destruction
of the token while the other does not). The `Change` output from the
transaction
        also count as a `ChangePolicy`.
- The number of excluded coin IDs exceeds the maximum number of inputs
allowed.
    - Required assets have multiple entries.
- If accounts don't have sufficient amounts to cover the transaction
requirements in assets.
- If a constructed transaction breaks the rules defined by consensus
parameters.
- [2780](FuelLabs/fuel-core#2780): Add
implementations for the pre-confirmation signing task
- [2784](FuelLabs/fuel-core#2784): Integrate the
pre conf signature task into the main consensus task
- [2788](FuelLabs/fuel-core#2788): Scaffold
dedicated compression service.
- [2799](FuelLabs/fuel-core#2799): Add a
transaction waiter to the executor to wait for potential new
transactions inside the block production window.
Add a channel to send preconfirmation created by executor to the other
modules
  Added a new CLI arguments:
- `--production-timeout` to control the block production timeout in the
case if block producer stuck.
- `--poa-open-period` set the block production mode to `Open`. The
`Open` mode starts the production of the next block immediately after
the previous block. The block is open until the `period` passed. The
period is a duration represented by `100ms`, `1s`, `1m`, etc. The manual
block production is disabled if this production mode is used.
- [2802](FuelLabs/fuel-core#2802): Add a new
cache with outputs extracted from the pool for the duration of the
block.
- [2824](FuelLabs/fuel-core#2824): Introduce new
`Try`-like methods for the `TaskNextAction`
- [2840](FuelLabs/fuel-core#2840): Added a new
CLI arguments:
- `assemble-tx-dry-run-limit` - The max number how many times script can
be executed during `assemble_tx` GraphQL request. Default value is `3`
times.
- `assemble-tx-estimate-predicates-limit` - The max number how many
times predicates can be estimated during `assemble_tx` GraphQL request.
Default values is `10` times.
- [2841](FuelLabs/fuel-core#2841): Following
endpoints allow estimation of predicates on submission of the
transaction via new `estimatePredicates` argument:
  - `submit`
  - `submit_and_await`
  - `submit_and_await_status`
  
The change is backward compatible with all SDKs. The change is not
forward-compatible with Rust SDK in the case of the
`estiamte_predicates` flag set.
- [2844](FuelLabs/fuel-core#2844): Implement DA
compression in `fuel-core-compression-service`.
- [2845](FuelLabs/fuel-core#2845): New status to
manage the pre confirmation status send in `TxUpdateSender`.
- [2855](FuelLabs/fuel-core#2855): Add an
expiration interval check for pending pool and refactor
extracted_outputs to not rely on block creation/process sequence.
- [2856](FuelLabs/fuel-core#2856): Add generic
logic for managing the signatures and delegate keys for
pre-confirmations signatures
- [2862](FuelLabs/fuel-core#2862): Derive
`enum_iterator::Sequence` and `strum_macros::{EnumCount, IntoStaticStr}`
for MerkleizedColumn.

### Changed
- [2388](FuelLabs/fuel-core#2388): Rework the
P2P service codecs to avoid unnecessary coupling between components. The
refactoring makes it explicit that the Gossipsub and RequestResponse
codecs only share encoding/decoding functionalities from the Postcard
codec. It also makes handling Gossipsub and RequestResponse messages
completely independent of each other.
- [2460](FuelLabs/fuel-core#2460): The type of
the `max_response_size`for the postcard codec used in `RequestResponse`
protocols has been changed from `usize` to `u64`.
- [2473](FuelLabs/fuel-core#2473): Graphql
requests and responses make use of a new `extensions` object to specify
request/response metadata. A request `extensions` object can contain an
integer-valued `required_fuel_block_height` field. When specified, the
request will return an error unless the node's current fuel block height
is at least the value specified in the `required_fuel_block_height`
field. All graphql responses now contain an integer-valued
`current_fuel_block_height` field in the `extensions` object, which
contains the block height of the last block processed by the node.
- [2618](FuelLabs/fuel-core#2618): Parallelize
block/transaction changes creation in Importer
- [2653](FuelLabs/fuel-core#2653): Added cleaner
error for wasm-executor upon failed deserialization.
- [2656](FuelLabs/fuel-core#2656): Migrate test
helper function `create_contract` to
`fuel_core_types::test_helpers::create_contract`, and refactor test in
proof_system/global_merkle_root crate to use this function.
- [2659](FuelLabs/fuel-core#2659): Replace
`derivative` crate with `educe` crate.
- [2705](FuelLabs/fuel-core#2705): Update the
default value for `--max-block-size` and `--max-transmit-size` to 50 MB
- [2715](FuelLabs/fuel-core#2715): Each GraphQL
response contains `current_consensus_parameters_version` and
`current_stf_version` in the `extensions` section.
- [2723](FuelLabs/fuel-core#2723): Change the
way we are building the changelog to avoids conflicts.
- [2725](FuelLabs/fuel-core#2725): New txpool
worker to remove lock contention
- [2752](FuelLabs/fuel-core#2752): Extended the
`TransactionStatus` to support pre-confirmations.
- [2761](FuelLabs/fuel-core#2761): Renamed
`ConsensusParametersProvider` to `ChainStateInfoProvider` because it is
now providing more than just info about consensus parameters.
- [2767](FuelLabs/fuel-core#2767): Updated
fuel-vm to v0.60.0, see [release
notes](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.60.0).
- [2781](FuelLabs/fuel-core#2781): Deprecate
`dryRun` mutation. Use `dryRun` query instead.
- [2791](FuelLabs/fuel-core#2791): Added
`TxStatusManager` service which serves as a single source of truth
regarding the current statuses of transactions
- [2793](FuelLabs/fuel-core#2793): Moved common
merkle storage trait implementations to `fuel-core-storage` and made it
easier to setup a set of columns that need merkleization.
- [2799](FuelLabs/fuel-core#2799): Change the
block production to not be trigger after an interval but directly after
the creation of last block and let the executor run for the block time
window.
- [2800](FuelLabs/fuel-core#2800): Implement P2P
adapter for preconfirmation broadcasting
- [2802](FuelLabs/fuel-core#2802): Change new
txs notifier to be notified only on executable transactions
- [2811](FuelLabs/fuel-core#2811): When the
state rewind window of 7d was triggered, the `is_migration_in_progress`
was repeatedly called, resulting in multiple iterations over the empty
ModificationsHistoryV1 table. Iteration was slow because compaction
didn't have a chance to clean up V1 table. We removed iteration from the
migration process.
- [2824](FuelLabs/fuel-core#2824): Improve
conditions where `Error`s in the `PreConfirmationSignatureTask` stop the
service
- [2840](FuelLabs/fuel-core#2840): Removed
`log_backtrace` logic from the executor. It is not needed anymore with
the existence of the local debugger for the transactions.
- [2865](FuelLabs/fuel-core#2865): Consider the
following transaction statuses as final: `Success`, `Failure`,
`SqueezedOut`, `PreConfirmationSqueezedOut`. All other statuses will be
considered transient.

### Fixed
- [2646](FuelLabs/fuel-core#2646): Improved
performance of fetching block height by caching it when the view is
created.
- [2682](FuelLabs/fuel-core#2682): Fixed the
issue with RPC consistency feature for the subscriptions(without the fix
first we perform the logic of the query, and only after verify the
required height).
- [2730](FuelLabs/fuel-core#2730): Fixed RocksDB
closing issue that potentially could panic.
- [2743](FuelLabs/fuel-core#2743): Allow
discovery of the peers when slots for functional connections are
consumed. Reserved nodes are not affected by the limitation on
connections anymore.
- [2746](FuelLabs/fuel-core#2746): Fixed flaky
part in the e2e tests and version compatibility tests. Speed up
compatibility tests execution time. Decreased the default time between
block height propagation throw the network.
- [2758](FuelLabs/fuel-core#2758): Made
`tx_id_commitment` feature flagged in `fuel-core-client`.
- [2832](FuelLabs/fuel-core#2832): - Trigger
block production only when all other sub services are started.
- Fix relayer syncing issue causing block production to slow down
occasionally.
- [2840](FuelLabs/fuel-core#2840): Fixed
`fuel-core-client` receipt deserialization in the case if the
`ContractId` is zero.

### Removed
- [2863](FuelLabs/fuel-core#2863): Removed
everything related to the state root service, as it has been moved to
another repo.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: AurelienFT <[email protected]>
BugSeeker84 added a commit to BugSeeker84/fuel-core that referenced this pull request Nov 16, 2025
Closes FuelLabs/fuel-core#2754

## Description
This is a follow-up PR to the "[new GraphQL extension
data](FuelLabs/fuel-core#2715)" PR created to
solve some unaddressed comments:
- FuelLabs/fuel-core#2715 (comment)
- FuelLabs/fuel-core#2715 (comment)

The main change is: _"Renamed `ConsensusParametersProvider` to
`ChainStateInfoProvider` because it is now providing more than just info
about consensus parameters."_

Apart from that it also contains some other minor renames and a fix to
initialization of the state transition function version.

### Before requesting review
- [X] I have reviewed the code myself

---------

Co-authored-by: Green Baneling <[email protected]>
BugSeeker84 added a commit to BugSeeker84/fuel-core that referenced this pull request Nov 16, 2025
## Version 0.42.0

### Breaking
- [2648](FuelLabs/fuel-core#2648): Add
feature-flagged field to block header `fault_proving_header` that
contains a commitment to all transaction ids.
- [2678](FuelLabs/fuel-core#2678): Removed
public accessors for `BlockHeader` fields and replaced with methods
instead, moved `tx_id_commitment` to the application header of
`BlockHeaderV2`.
- [2746](FuelLabs/fuel-core#2746): Breaking
changes to the CLI arguments:
- To disable `random-walk` just don't specify it. Before it required to
use `--random-walk 0`.
  - Next CLI arguments were renamed:
    - `relayer-min-duration-s` -> `relayer-min-duration`
    - `relayer-eth-sync-call-freq-s` -> `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq-s` -> `relayer-eth-sync-log-freq`
- Default value for the `heartbeat-idle-duration` was changed from `1s`
to `100ms`. So information about new block will be propagated faster by
default.
- All CLI arguments below use time(like `100ms`, `1s`, `1d`, etc.) use
as a flag argument instead of number of seconds:
    - `random-walk`
    - `connection-idle-timeout`
    - `info-interval`
    - `identify-interval`
    - `request-timeout`
    - `connection-keep-alive`
    - `heartbeat-send-duration`
    - `heartbeat-idle-duration`
    - `heartbeat-check-interval`
    - `heartbeat-max-avg-interval`
    - `heartbeat-max-time-since-last`
    - `relayer-min-duration`
    - `relayer-eth-sync-call-freq`
    - `relayer-eth-sync-log-freq`
- [2840](FuelLabs/fuel-core#2840): CLI argument
`vm-backtrace` is deprecated and does nothing. It will be removed in a
future version of `fuel-core`.
The `extra_tx_checks` field was renamed into `forbid_fake_coins` that
affects JSON based serialization/deserialization.
Renamed `extra_tx_checks_default` field into
`forbid_fake_coins_default`.

### Added
- [2150](FuelLabs/fuel-core#2150): Upgraded
`libp2p` to `0.54.1` and introduced `ConnectionLimiter` to limit pending
incoming/outgoing connections.
- [2491](FuelLabs/fuel-core#2491): Storage read
replays of historical blocks for execution tracing. Only available
behind `--historical-execution` flag.
- [2619](FuelLabs/fuel-core#2619): Add
possibility to submit list of changes to rocksdb.
- [2666](FuelLabs/fuel-core#2666): Added two new
CLI arguments to control the GraphQL queries consistency:
`--graphql-block-height-tolerance` (default: `10`) and
`--graphql-block-height-min-timeout` (default: `30s`). If a request
requires a specific block height and the node is slightly behind, it
will wait instead of failing.
- [2682](FuelLabs/fuel-core#2682): Added GraphQL
APIs to get contract storage and balances for current and past blocks.
- [2719](FuelLabs/fuel-core#2719): Merklized DA
compression temporal registry tables.
- [2722](FuelLabs/fuel-core#2722): Service
definition for state root service.
- [2724](FuelLabs/fuel-core#2724): Explicit
error type for merkleized storage.
- [2726](FuelLabs/fuel-core#2726): Add a new
gossip-sub message for transaction preconfirmations
- [2731](FuelLabs/fuel-core#2731): Include
`TemporalRegistry` trait implementations for v2 tables.
- [2733](FuelLabs/fuel-core#2733): Add a pending
pool transaction that allow transaction to wait a bit of time if an
input is missing instead of direct delete.
- [2742](FuelLabs/fuel-core#2742): Added API
crate for merkle root service.
- [2756](FuelLabs/fuel-core#2756): Add new
service for managing pre-confirmations
- [2769](FuelLabs/fuel-core#2769): Added a new
`assembleTx` GraphQL endpoint. The endpoint can be used to assemble the
transaction based on the provided requirements.
  
  - The returned transaction contains:
    - Input coins to cover `required_balances`
- Input coins to cover the fee of the transaction based on the gas price
from `block_horizon`
    - `Change` or `Destroy` outputs for all assets from the inputs
- `Variable` outputs in the case they are required during the execution
- `Contract` inputs and outputs in the case they are required during the
execution
    - Reserved witness slots for signed coins filled with `64` zeroes
    - Set script gas limit(unless `script` is empty)
    - Estimated predicates, if `estimate_predicates == true`
  
  - Returns an error if:
- The number of required balances exceeds the maximum number of inputs
allowed.
    - The fee address index is out of bounds.
    - The same asset has multiple change policies(either the receiver of
the change is different, or one of the policies states about the
destruction
of the token while the other does not). The `Change` output from the
transaction
        also count as a `ChangePolicy`.
- The number of excluded coin IDs exceeds the maximum number of inputs
allowed.
    - Required assets have multiple entries.
- If accounts don't have sufficient amounts to cover the transaction
requirements in assets.
- If a constructed transaction breaks the rules defined by consensus
parameters.
- [2780](FuelLabs/fuel-core#2780): Add
implementations for the pre-confirmation signing task
- [2784](FuelLabs/fuel-core#2784): Integrate the
pre conf signature task into the main consensus task
- [2788](FuelLabs/fuel-core#2788): Scaffold
dedicated compression service.
- [2799](FuelLabs/fuel-core#2799): Add a
transaction waiter to the executor to wait for potential new
transactions inside the block production window.
Add a channel to send preconfirmation created by executor to the other
modules
  Added a new CLI arguments:
- `--production-timeout` to control the block production timeout in the
case if block producer stuck.
- `--poa-open-period` set the block production mode to `Open`. The
`Open` mode starts the production of the next block immediately after
the previous block. The block is open until the `period` passed. The
period is a duration represented by `100ms`, `1s`, `1m`, etc. The manual
block production is disabled if this production mode is used.
- [2802](FuelLabs/fuel-core#2802): Add a new
cache with outputs extracted from the pool for the duration of the
block.
- [2824](FuelLabs/fuel-core#2824): Introduce new
`Try`-like methods for the `TaskNextAction`
- [2840](FuelLabs/fuel-core#2840): Added a new
CLI arguments:
- `assemble-tx-dry-run-limit` - The max number how many times script can
be executed during `assemble_tx` GraphQL request. Default value is `3`
times.
- `assemble-tx-estimate-predicates-limit` - The max number how many
times predicates can be estimated during `assemble_tx` GraphQL request.
Default values is `10` times.
- [2841](FuelLabs/fuel-core#2841): Following
endpoints allow estimation of predicates on submission of the
transaction via new `estimatePredicates` argument:
  - `submit`
  - `submit_and_await`
  - `submit_and_await_status`
  
The change is backward compatible with all SDKs. The change is not
forward-compatible with Rust SDK in the case of the
`estiamte_predicates` flag set.
- [2844](FuelLabs/fuel-core#2844): Implement DA
compression in `fuel-core-compression-service`.
- [2845](FuelLabs/fuel-core#2845): New status to
manage the pre confirmation status send in `TxUpdateSender`.
- [2855](FuelLabs/fuel-core#2855): Add an
expiration interval check for pending pool and refactor
extracted_outputs to not rely on block creation/process sequence.
- [2856](FuelLabs/fuel-core#2856): Add generic
logic for managing the signatures and delegate keys for
pre-confirmations signatures
- [2862](FuelLabs/fuel-core#2862): Derive
`enum_iterator::Sequence` and `strum_macros::{EnumCount, IntoStaticStr}`
for MerkleizedColumn.

### Changed
- [2388](FuelLabs/fuel-core#2388): Rework the
P2P service codecs to avoid unnecessary coupling between components. The
refactoring makes it explicit that the Gossipsub and RequestResponse
codecs only share encoding/decoding functionalities from the Postcard
codec. It also makes handling Gossipsub and RequestResponse messages
completely independent of each other.
- [2460](FuelLabs/fuel-core#2460): The type of
the `max_response_size`for the postcard codec used in `RequestResponse`
protocols has been changed from `usize` to `u64`.
- [2473](FuelLabs/fuel-core#2473): Graphql
requests and responses make use of a new `extensions` object to specify
request/response metadata. A request `extensions` object can contain an
integer-valued `required_fuel_block_height` field. When specified, the
request will return an error unless the node's current fuel block height
is at least the value specified in the `required_fuel_block_height`
field. All graphql responses now contain an integer-valued
`current_fuel_block_height` field in the `extensions` object, which
contains the block height of the last block processed by the node.
- [2618](FuelLabs/fuel-core#2618): Parallelize
block/transaction changes creation in Importer
- [2653](FuelLabs/fuel-core#2653): Added cleaner
error for wasm-executor upon failed deserialization.
- [2656](FuelLabs/fuel-core#2656): Migrate test
helper function `create_contract` to
`fuel_core_types::test_helpers::create_contract`, and refactor test in
proof_system/global_merkle_root crate to use this function.
- [2659](FuelLabs/fuel-core#2659): Replace
`derivative` crate with `educe` crate.
- [2705](FuelLabs/fuel-core#2705): Update the
default value for `--max-block-size` and `--max-transmit-size` to 50 MB
- [2715](FuelLabs/fuel-core#2715): Each GraphQL
response contains `current_consensus_parameters_version` and
`current_stf_version` in the `extensions` section.
- [2723](FuelLabs/fuel-core#2723): Change the
way we are building the changelog to avoids conflicts.
- [2725](FuelLabs/fuel-core#2725): New txpool
worker to remove lock contention
- [2752](FuelLabs/fuel-core#2752): Extended the
`TransactionStatus` to support pre-confirmations.
- [2761](FuelLabs/fuel-core#2761): Renamed
`ConsensusParametersProvider` to `ChainStateInfoProvider` because it is
now providing more than just info about consensus parameters.
- [2767](FuelLabs/fuel-core#2767): Updated
fuel-vm to v0.60.0, see [release
notes](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.60.0).
- [2781](FuelLabs/fuel-core#2781): Deprecate
`dryRun` mutation. Use `dryRun` query instead.
- [2791](FuelLabs/fuel-core#2791): Added
`TxStatusManager` service which serves as a single source of truth
regarding the current statuses of transactions
- [2793](FuelLabs/fuel-core#2793): Moved common
merkle storage trait implementations to `fuel-core-storage` and made it
easier to setup a set of columns that need merkleization.
- [2799](FuelLabs/fuel-core#2799): Change the
block production to not be trigger after an interval but directly after
the creation of last block and let the executor run for the block time
window.
- [2800](FuelLabs/fuel-core#2800): Implement P2P
adapter for preconfirmation broadcasting
- [2802](FuelLabs/fuel-core#2802): Change new
txs notifier to be notified only on executable transactions
- [2811](FuelLabs/fuel-core#2811): When the
state rewind window of 7d was triggered, the `is_migration_in_progress`
was repeatedly called, resulting in multiple iterations over the empty
ModificationsHistoryV1 table. Iteration was slow because compaction
didn't have a chance to clean up V1 table. We removed iteration from the
migration process.
- [2824](FuelLabs/fuel-core#2824): Improve
conditions where `Error`s in the `PreConfirmationSignatureTask` stop the
service
- [2840](FuelLabs/fuel-core#2840): Removed
`log_backtrace` logic from the executor. It is not needed anymore with
the existence of the local debugger for the transactions.
- [2865](FuelLabs/fuel-core#2865): Consider the
following transaction statuses as final: `Success`, `Failure`,
`SqueezedOut`, `PreConfirmationSqueezedOut`. All other statuses will be
considered transient.

### Fixed
- [2646](FuelLabs/fuel-core#2646): Improved
performance of fetching block height by caching it when the view is
created.
- [2682](FuelLabs/fuel-core#2682): Fixed the
issue with RPC consistency feature for the subscriptions(without the fix
first we perform the logic of the query, and only after verify the
required height).
- [2730](FuelLabs/fuel-core#2730): Fixed RocksDB
closing issue that potentially could panic.
- [2743](FuelLabs/fuel-core#2743): Allow
discovery of the peers when slots for functional connections are
consumed. Reserved nodes are not affected by the limitation on
connections anymore.
- [2746](FuelLabs/fuel-core#2746): Fixed flaky
part in the e2e tests and version compatibility tests. Speed up
compatibility tests execution time. Decreased the default time between
block height propagation throw the network.
- [2758](FuelLabs/fuel-core#2758): Made
`tx_id_commitment` feature flagged in `fuel-core-client`.
- [2832](FuelLabs/fuel-core#2832): - Trigger
block production only when all other sub services are started.
- Fix relayer syncing issue causing block production to slow down
occasionally.
- [2840](FuelLabs/fuel-core#2840): Fixed
`fuel-core-client` receipt deserialization in the case if the
`ContractId` is zero.

### Removed
- [2863](FuelLabs/fuel-core#2863): Removed
everything related to the state root service, as it has been moved to
another repo.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: AurelienFT <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include the version of the STF and consensus parameters versions in all GQL responses via extensions

5 participants