Releases: FuelLabs/fuel-core
v0.22.2
v0.23.0
Version v0.23.0
Added
- #1713: Added automatic
impl
of traitsStorageWrite
andStorageRead
forStructuredStorage
. Tables that use aBlueprint
can be read and written using these interfaces provided by structured storage types. - #1671: Added a new
Merklized
blueprint that maintains the binary Merkle tree over the storage data. It supports only the insertion of the objects without removing them. - #1657: Moved
ContractsInfo
table fromfuel-vm
to on-chain tables, and created version-ableContractsInfoType
to act as the table's data type.
Changed
- #1723: Notify about imported blocks from the off-chain worker.
- #1717: The fix for the #1657 to include the contract into
ContractsInfo
table. - #1657: Upgrade to
fuel-vm
0.46.0. - #1671: The logic related to the
FuelBlockIdsToHeights
is moved to the off-chain worker. - #1663: Reduce the punishment criteria for mempool gossipping.
- #1658: Removed
Receipts
table. Instead, receipts are part of theTransactionStatuses
table. - #1640: Upgrade to fuel-vm 0.45.0.
- #1635: Move updating of the owned messages and coins to off-chain worker.
- #1650: Add api endpoint for getting estimates for future gas prices
- #1649: Add api endpoint for getting latest gas price
- #1600: Upgrade to fuel-vm 0.45.0
- #1633: Notify services about importing of the genesis block.
- #1625: Making relayer independent from the executor and preparation for the force transaction inclusion.
- #1613: Add api endpoint to retrieve a message by its nonce.
- #1612: Use
AtomicView
in all services for consistent results. - #1597: Unify namespacing for
libp2p
modules - #1591: Simplify libp2p dependencies and not depend on all sub modules directly.
- #1590: Use
AtomicView
in theTxPool
to read the state of the database during insertion of the transactions. - #1587: Use
BlockHeight
as a primary key for theFuelsBlock
table. - #1585: Let
NetworkBehaviour
macro generateFuelBehaviorEvent
in p2p - #1579: The change extracts the off-chain-related logic from the executor and moves it to the GraphQL off-chain worker. It creates two new concepts - Off-chain and On-chain databases where the GraphQL worker has exclusive ownership of the database and may modify it without intersecting with the On-chain database.
- #1577: Moved insertion of sealed blocks into the
BlockImporter
instead of the executor. - #1574: Penalizes peers for sending invalid responses or for not replying at all.
- #1601: Fix formatting in docs and check that
cargo doc
passes in the CI. - #1636: Add more docs to GraphQL DAP API.
Breaking
-
#1725: All API endpoints now are prefixed with
/v1
version. New usage looks like:/v1/playground
,/v1/graphql
,/v1/graphql-sub
,/v1/metrics
,/v1/health
. -
#1722: Bugfix: Zero
predicate_gas_used
field during validation of the produced block. -
#1714: The change bumps the
fuel-vm
to0.47.1
. It breaks several breaking changes into the protocol:- All malleable fields are zero during the execution and unavailable through the GTF getters. Accessing them via the memory directly is still possible, but they are zero.
- The
Transaction
doesn't define the gas price anymore. The gas price is defined by the block producer and recorded in theMint
transaction at the end of the block. A price of future blocks can be fetched through a new API nedopoint and the price of the last block can be fetch or via the block or another API endpoint. - The
GasPrice
policy is replaced with theTip
policy. The user may specify in the native tokens how much he wants to pay the block producer to include his transaction in the block. It is the prioritization mechanism to incentivize the block producer to include users transactions earlier. - The
MaxFee
policy is mandatory to set. Without it, the transaction pool will reject the transaction. Since the block producer defines the gas price, the only way to control how much user agreed to pay can be done only through this policy. - The
maturity
field is removed from theInput::Coin
. The same affect can be achieve with theMaturity
policy on the transaction and predicate. This changes breaks how input coin is created and removes the passing of this argument. - The metadata of the
Checked<Tx>
doesn't containmax_fee
andmin_fee
anymore. Onlymax_gas
andmin_gas
. Themax_fee
is controlled by the user via theMaxFee
policy. - Added automatic
impl
of traitsStorageWrite
andStorageRead
forStructuredStorage
. Tables that use aBlueprint
can be read and written using these interfaces provided by structured storage types.
-
#1712: Make
ContractUtxoInfo
type a version-able enum for use in theContractsLatestUtxo
table. -
#1657: Changed
CROO
gas price type fromWord
toDependentGasPrice
. The dependent gas price values are dummy values while awaiting updated benchmarks. -
#1671: The GraphQL API uses block height instead of the block id where it is possible. The transaction status contains
block_height
instead of theblock_id
. -
#1675: Simplify GQL schema by disabling contract resolvers in most cases, and just return a ContractId scalar instead.
-
#1658: Receipts are part of the transaction status.
Removedreason
from theTransactionExecutionResult::Failed
. It can be calculated based on the program state and receipts.
Also, it is not possible to fetchreceipts
from theTransaction
directly anymore. Instead, you need to fetchstatus
and its receipts. -
#1646: Remove redundant receipts from queries.
-
#1639: Make Merkle metadata, i.e.
SparseMerkleMetadata
andDenseMerkleMetadata
type version-able enums -
#1632: Make
Message
type a version-able enum -
#1631: Modify api endpoint to dry run multiple transactions.
-
#1629: Use a separate database for each data domain. Each database has its own folder where data is stored.
-
#1628: Make
CompressedCoin
type a version-able enum -
#1616: Make
BlockHeader
type a version-able enum -
#1614: Use the default consensus key regardless of trigger mode. The change is breaking because it removes the
--dev-keys
argument. If thedebug
flag is set, the default consensus key will be used, regardless of the trigger mode. -
#1596: Make
Consensus
type a version-able enum -
#1593: Make
Block
type a version-able enum -
#1576: The change moves the implementation of the storage traits for required tables from
fuel-core
tofuel-core-storage
crate. The change also adds a more flexible configuration of the encoding/decoding per the table and allows the implementation of specific behaviors for the table in a much easier way. It unifies the encoding between database, SMTs, and iteration, preventing mismatching bytes representation on the Rust type system level. Plus, it increases the re-usage of the code by applying the same blueprint to other tables.It is a breaking PR because it changes database encoding/decoding for some tables.
StructuredStorage
The change adds a new type
StructuredStorage
. It is a wrapper around the key-value storage that implements the storage traits(StorageInspect
,StorageMutate
,StorageRead
, etc) for the tables with blueprint. This blueprint works in tandem with theTableWithBlueprint
trait. The table may implementTableWithBlueprint
specifying the blueprint, as...
v0.22.1
v0.22.0
This release contains largely internal breaking changes to adjust our database layout of SMT's and a new API to view the status of connected peers. The only major breaking external change is that the peer_count field on the ChainInfo query resolver was removed and migrated to NodeInfo.
[Version 0.22.0]
Added
- #1515: Added support of
--version
command forfuel-core-keygen
binary. - #1504: A
Success
orFailure
variant ofTransactionStatus
returned by a query now contains the associated receipts generated by transaction execution.
Breaking
- #1531: Make
fuel-core-executor
no_std
compatible. It affects thefuel-core
crate because it uses thefuel-core-executor
crate. The change is breaking because of moved types. - #1524: Adds information about connected peers to the GQL API.
Changed
- #1517: Changed default gossip heartbeat interval to 500ms.
- #1520: Extract
executor
intofuel-core-executor
crate.
Fixed
Breaking
- #1536: The change fixes the contracts tables to not touch SMT nodes of foreign contracts. Before, it was possible to invalidate the SMT from another contract. It is a breaking change and requires re-calculating the whole state from the beginning with new SMT roots.
- #1542: Migrates information about peers to NodeInfo instead of ChainInfo. It also elides information about peers in the default node_info query.
New Contributors
Full Changelog: v0.21.0...v0.22.0
v0.21.0
Version 0.21.0
This release focuses on preparing fuel-core
for the mainnet environment:
- Most of the changes improved the security and stability of the node.
- The gas model was reworked to cover all aspects of execution.
- The benchmarking system was significantly enhanced, covering worst scenarios.
- A new set of benchmarks was added to track the accuracy of gas prices.
- Optimized heavy operations and removed/replaced exploitable functionality.
Besides that, there are more concrete changes:
- Unified naming conventions for all CLI arguments. Added dependencies between related fields to avoid misconfiguration in case of missing arguments. Added
--debug
flag that enables additional functionality like a debugger. - Improved telemetry to cover the internal work of services and added support for the Pyroscope, allowing it to generate real-time flamegraphs to track performance.
- Improved stability of the P2P layer and adjusted the updating of reputation. The speed of block synchronization was significantly increased.
- The node is more stable and resilient. Improved DoS resistance and resource management. Fixed critical bugs during state transition.
- Reworked the
Mint
transaction to accumulate the fee from block production inside the contract defined by the block producer.
FuelVM received a lot of safety and stability improvements:
- The audit helped identify some bugs and errors that have been successfully fixed.
- Updated the gas price model to charge for resources used during the transaction lifecycle.
- Added
no_std
and 32 bit system support. This opens doors for fraud proving in the future. - Removed the
ChainId
from thePredicateId
calculation, allowing the use of predicates cross-chain. - Improvements in the performance of some storage-related opcodes.
- Support the
ECAL
instruction that allows adding custom functionality to the VM. It can be used to create unique rollups or advanced indexers in the future. - Support of transaction policies provides additional safety for the user.
It also allows the implementation of a multi-dimensional price model in the future, making the transaction execution cheaper and allowing more transactions that don't affect storage. - Refactored errors, returning more detailed errors to the user, simplifying debugging.
Added
- #1503: Add
gtf
opcode sanity check. - #1502: Added price benchmark for
vm_initialization
. - #1501: Add a CLI command for generating a fee collection contract.
- #1492: Support backward iteration in the RocksDB. It allows backward queries that were not allowed before.
- #1490: Add push and pop benchmarks.
- #1485: Prepare rc release of fuel core v0.21
- #1476: Add the majority of the "other" benchmarks for contract opcodes.
- #1473: Expose fuel-core version as a constant
- #1469: Added support of bloom filter for RocksDB tables and increased the block cache.
- #1465: Improvements for keygen cli and crates
- #1642: Added benchmark to measure the performance of contract state and contract ID calculation; use for gas costing.
- #1457: Fixing incorrect measurement for fast(µs) opcodes.
- #1456: Added flushing of the RocksDB during a graceful shutdown.
- #1456: Added more logs to track the service lifecycle.
- #1453: Add the majority of the "sanity" benchmarks for contract opcodes.
- #1452: Added benchmark to measure the performance of contract root calculation when utilizing the maximum contract size; used for gas costing of contract root during predicate owner validation.
- #1449: Fix coin pagination in e2e test client.
- #1447: Add timeout for continuous e2e tests
- #1444: Add "sanity" benchmarks for memory opcodes.
- #1437: Add some transaction throughput tests for basic transfers.
- #1436: Add a github action to continuously test beta-4.
- #1433: Add "sanity" benchmarks for flow opcodes.
- #1432: Add a new
--api-request-timeout
argument to control TTL for GraphQL requests. - #1430: Add "sanity" benchmarks for crypto opcodes.
- #1426 Split keygen into a create and a binary.
- #1419: Add additional "sanity" benchmarks for arithmetic op code instructions.
- #1411: Added WASM and
no_std
compatibility. - #1405: Use correct names for service metrics.
- #1400: Add releasy beta to fuel-core so that new commits to fuel-core master triggers fuels-rs.
- #1371: Add new client function for querying the
MessageStatus
for a specific message (byNonce
). - #1356: Add peer reputation reporting to heartbeat code.
- #1355: Added new metrics related to block importing, such as tps, sync delays etc.
- #1339: Adds
baseAssetId
toFeeParameters
in the GraphQL API. - #1331: Add peer reputation reporting to block import code.
- #1324: Added pyroscope profiling to fuel-core, intended to be used by a secondary docker image that has debug symbols enabled.
- #1309: Add documentation for running debug builds with CLion and Visual Studio Code.
- #1308: Add support for loading .env files when compiling with the
env
feature. This allows users to conveniently supply CLI arguments in a secure and IDE-agnostic way. - #1304: Implemented
submit_and_await_commit_with_receipts
method forFuelClient
. - #1286: Include readable names for test cases where missing.
- #1274: Added tests to benchmark block synchronization.
- #1263: Add gas benchmarks for
ED19
andECR1
instructions.
Changed
- #1512: Internally simplify merkle_contract_state_range.
- #1507: Updated chain configuration to be ready for beta 5 network. It includes opcode prices from the latest benchmark and contract for the block producer.
- #1477: Upgraded the Rust version used in CI and containers to 1.73.0. Also includes associated Clippy changes.
- #1469: Replaced usage of
MemoryTransactionView
byCheckpoint
database in the benchmarks. - #1468: Bumped version of the
fuel-vm
tov0.40.0
. It brings some breaking changes into consensus parameters API because of changes in the underlying types. - #1466: Handling overflows during arithmetic operations.
- #1460: Change tracking branch from main to master for releasy tests.
- #1454: Update gas benchmarks for opcodes that append receipts.
- #1440: Don't report reserved nodes that send invalid transactions.
- #1439: Reduced memory BMT consumption during creation of the header.
- #1434: Continue gossiping transactions to reserved peers regardless of gossiping reputation score.
- #1408: Update gas benchmarks for storage opcodes to use a pre-populated database to get more accurate worst-case costs.
- #1399: The Relayer now queries Ethereum for its latest finalized block instead of using a configurable "finalization period" to presume finality.
- #1397: Improved keygen. Created a crate to be included from forc plugins and upgraded internal library to drop requirement of protoc to build
- #1395: Add DependentCost benchmarks for
k256
,s256
andmcpi
instructions. - #1393: Increase heartbeat timeout from
2
t...
v0.21.0-rc.1
Release v0.21.0-rc.1
Added
- #1488: Add docker login for cross binaries that use docker
- #1485: Prepare rc release of fuel core v0.21
- #1473: Expose fuel-core version as a constant
- #1469: Added support of bloom filter for RocksDB tables and increased the block cache.
- #1642: Added benchmark to measure the performance of contract state and contract ID calculation; use for gas costing.
- #1465: Improvements for keygen cli and crates
- #1457: Fixing incorrect measurement for fast(µs) opcodes.
- #1456: Added flushing of the RocksDB during a graceful shutdown.
- #1456: Added more logs to track the service lifecycle.
- #1449: Fix coin pagination in e2e test client.
- #1452: Added benchmark to measure the performance of contract root calculation when utilizing the maximum contract size; used for gas costing of contract root during predicate owner validation.
- #1447: Add timeout for continuous e2e tests
- #1444: Add "sanity" benchmarks for memory opcodes.
- #1437: Add some transaction throughput tests for basic transfers.
- #1436: Add a github action to continuously test beta-4.
- #1433: Add "sanity" benchmarks for flow opcodes.
- #1430: Add "sanity" benchmarks for crypto opcodes.
- #1432: Add a new
--api-request-timeout
argument to control TTL for GraphQL requests. - #1426 Split keygen into a create and a binary
- #1419: Add additional "sanity" benchmarks for arithmetic op code instructions.
- #1411: Added WASM and
no_std
compatibility. - #1400: Add releasy beta to fuel-core so that new commits to fuel-core master triggers fuels-rs.
- #1371: Add new client function for querying the
MessageStatus
for a specific message (byNonce
) - #1356: Add peer reputation reporting to heartbeat code
- #1355: Added new metrics related to block importing, such as tps, sync delays etc
- #1339: Adds
baseAssetId
toFeeParameters
in the GraphQL API. - #1331: Add peer reputation reporting to block import code
- #1324: Added pyroscope profiling to fuel-core, intended to be used by a secondary docker image that has debug symbols enabled.
- #1309: Add documentation for running debug builds with CLion and Visual Studio Code.
- #1308: Add support for loading .env files when compiling with the
env
feature. This allows users to conveniently supply CLI arguments in a secure and IDE-agnostic way. - #1304: Implemented
submit_and_await_commit_with_receipts
method forFuelClient
. - #1286: Include readable names for test cases where missing.
- #1274: Added tests to benchmark block synchronization.
- #1263: Add gas benchmarks for
ED19
andECR1
instructions. - #1331: Add peer reputation reporting to block import code
- #1405: Use correct names for service metrics.
Changed
- #1477: Upgraded the Rust version used in CI and containers to 1.73.0. Also includes associated Clippy changes.
- #1469: Replaced usage of
MemoryTransactionView
byCheckpoint
database in the benchmarks. - #1466: Handling overflows during arithmetic operations.
- #1468: Bumped version of the
fuel-vm
tov0.40.0
. It brings some breaking changes into consensus parameters API because of changes in the underlying types. - #1460: Change tracking branch from main to master for releasy tests.
- #1440: Don't report reserved nodes that send invalid transactions.
- #1439: Reduced memory BMT consumption during creation of the header.
- #1434: Continue gossiping transactions to reserved peers regardless of gossiping reputation score.
- #1399: The Relayer now queries Ethereum for its latest finalized block instead of using a configurable "finalization period" to presume finality.
- #1397: Improved keygen. Created a crate to be included from forc plugins and upgraded internal library to drop requirement of protoc to build
- #1349: Updated peer-to-peer transactions API to support multiple blocks in a single request, and updated block synchronization to request multiple blocks based on the configured range of headers.
- #1380: Add preliminary, hard-coded config values for heartbeat peer reputation, removing
todo
. - #1377: Remove
DiscoveryEvent
and useKademliaEvent
directly inDiscoveryBehavior
. - #1366: Improve caching during docker builds in CI by replacing gha
- #1358: Upgraded the Rust version used in CI to 1.72.0. Also includes associated Clippy changes.
- #1318: Modified block synchronization to use asynchronous task execution when retrieving block headers.
- #1314: Removed
types::ConsensusParameters
in favour offuel_tx:ConsensusParameters
. - #1302: Removed the usage of flake and building of the bridge contract ABI.
It simplifies the maintenance and updating of the events, requiring only putting the event definition into the codebase of the relayer. - #1293: Parallelized the
estimate_predicates
endpoint to utilize all available threads. - #1270: Modify the way block headers are retrieved from peers to be done in batches.
- #1342: Add error handling for P2P requests to return
None
to requester and log error. - #1383: Disallow usage of
log
crate internally in favor oftracing
crate. - #1390: Up the
ethers
version to2
to fix an issue withtungstenite
. - #1392: Fixed an overflow in
message_proof
. - #1393: Increase heartbeat timeout from
2
to60
seconds, as suggested in this issue. - #1395: Add DependentCost benchmarks for
k256
,s256
andmcpi
instructions. - #1408: Update gas benchmarks for storage opcodes to use a pre-populated database to get more accurate worst-case costs.
Breaking
- #1472: Upgraded
fuel-vm
tov0.42.0
. It introduces transaction policies that changes layout of the transaction. FOr more information check the v0.42.0 release. - #1470: Divide
DependentCost
into "light" and "heavy" operations. - #1464: Avoid possible truncation of higher bits. It may invalidate the code that truncated higher bits causing different behavior on 32-bit vs. 64-bit systems. The change affects some endpoints that now require lesser integers.
- #1432: All subscriptions and requests have a TTL now. So each subscription lifecycle is limited in time. If the subscription is closed because of TTL, it means that you subscribed after your transaction had been dropped by the network.
- #1407: The recipient is a
ContractId
instead ofAddress
. The block producer should deploy its contract to receive the transaction fee. The ...