fuel-core

Rust full node implementation of the Fuel v2 protocol.

OTHER License

Downloads
3.6M
Stars
58.2K
Committers
35

Bot releases are hidden (Show)

fuel-core - v0.21.0-rc.1

Published by xgreenx 11 months ago

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 (by Nonce)
  • #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 to FeeParameters 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 for FuelClient.
  • #1286: Include readable names for test cases where missing.
  • #1274: Added tests to benchmark block synchronization.
  • #1263: Add gas benchmarks for ED19 and ECR1 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 by Checkpoint database in the benchmarks.
  • #1466: Handling overflows during arithmetic operations.
  • #1468: Bumped version of the fuel-vm to v0.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 use KademliaEvent directly in DiscoveryBehavior.
  • #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 of fuel_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 of tracing crate.
  • #1390: Up the ethers version to 2 to fix an issue with tungstenite.
  • #1392: Fixed an overflow in message_proof.
  • #1393: Increase heartbeat timeout from 2 to 60 seconds, as suggested in this issue.
  • #1395: Add DependentCost benchmarks for k256, s256 and mcpi 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 to v0.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 of Address. The block producer should deploy its contract to receive the transaction fee. The collected fee is zero until the recipient contract is set.
  • #1407: The Mint transaction is reworked with new fields to support the account-base model. It affects serialization and deserialization of the transaction and also affects GraphQL schema.
  • #1407: The Mint transaction is the last transaction in the block instead of the first.
  • #1374: Renamed base_chain_height to da_height and return current relayer height instead of latest Fuel block height.
  • #1363: Change message_proof api to take nonce instead of message_id
  • #1339: Added a new required field called base_asset_id to the FeeParameters definition in ConsensusParameters, as well as default values for base_asset_id in the beta and dev chainspecs.
  • #1355: Removed the metrics feature flag from the fuel-core crate, and metrics are now included by default.
  • #1322:
    The debug flag is added to the CLI. The flag should be used for local development only. Enabling debug mode:
    - Allows GraphQL Endpoints to arbitrarily advance blocks.
    - Enables debugger GraphQL Endpoints.
    - Allows setting utxo_validation to false.
  • #1318: Removed the --sync-max-header-batch-requests CLI argument, and renamed --sync-max-get-txns to --sync-block-stream-buffer-size to better represent the current behavior in the import.
  • #1290: Standardize CLI args to use - instead of _.
  • #1279: Added a new CLI flag to enable the Relayer service --enable-relayer, and disabled the Relayer service by default. When supplying the --enable-relayer flag, the --relayer argument becomes mandatory, and omitting it is an error. Similarly, providing a --relayer argument without the --enable-relayer flag is an error. Lastly, providing the --keypair or --network arguments will also produce an error if the --enable-p2p flag is not set.
  • #1262: The ConsensusParameters aggregates all configuration data related to the consensus. It contains many fields that are segregated by the usage. The API of some functions was affected to use lesser types instead the whole ConsensusParameters. It is a huge breaking change requiring repetitively monotonically updating all places that use the ConsensusParameters. But during updating, consider that maybe you can use lesser types. Usage of them may simplify signatures of methods and make them more user-friendly and transparent.
  • #1367: Update to the latest version of fuel-vm.

Removed

Breaking

  • #1484: Removed --network CLI argument. Now the name of the network is fetched form chain configuration.
  • #1399: Removed relayer-da-finalization parameter from the relayer CLI.
  • #1338: Updated GraphQL client to use DependentCost for k256, mcpi, s256, scwq, swwq opcodes.
  • #1322: The manual_blocks_enabled flag is removed from the CLI. The analog is a debug flag.

What's Changed

New Contributors

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.20.4...v0.21.0-rc.1

fuel-core - v0.21.0-rc.1

Published by xgreenx 11 months ago

Version 0.21.0-rc.1

Added

  • #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 (by Nonce)
  • #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 to FeeParameters 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 for FuelClient.
  • #1286: Include readable names for test cases where missing.
  • #1274: Added tests to benchmark block synchronization.
  • #1263: Add gas benchmarks for ED19 and ECR1 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 by Checkpoint database in the benchmarks.
  • #1466: Handling overflows during arithmetic operations.
  • #1468: Bumped version of the fuel-vm to v0.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 use KademliaEvent directly in DiscoveryBehavior.
  • #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 of fuel_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 of tracing crate.
  • #1390: Up the ethers version to 2 to fix an issue with tungstenite.
  • #1392: Fixed an overflow in message_proof.
  • #1393: Increase heartbeat timeout from 2 to 60 seconds, as suggested in this issue.
  • #1395: Add DependentCost benchmarks for k256, s256 and mcpi 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 to v0.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 of Address. The block producer should deploy its contract to receive the transaction fee. The collected fee is zero until the recipient contract is set.
  • #1407: The Mint transaction is reworked with new fields to support the account-base model. It affects serialization and deserialization of the transaction and also affects GraphQL schema.
  • #1407: The Mint transaction is the last transaction in the block instead of the first.
  • #1374: Renamed base_chain_height to da_height and return current relayer height instead of latest Fuel block height.
  • #1363: Change message_proof api to take nonce instead of message_id
  • #1339: Added a new required field called base_asset_id to the FeeParameters definition in ConsensusParameters, as well as default values for base_asset_id in the beta and dev chainspecs.
  • #1355: Removed the metrics feature flag from the fuel-core crate, and metrics are now included by default.
  • #1322:
    The debug flag is added to the CLI. The flag should be used for local development only. Enabling debug mode:
    - Allows GraphQL Endpoints to arbitrarily advance blocks.
    - Enables debugger GraphQL Endpoints.
    - Allows setting utxo_validation to false.
  • #1318: Removed the --sync-max-header-batch-requests CLI argument, and renamed --sync-max-get-txns to --sync-block-stream-buffer-size to better represent the current behavior in the import.
  • #1290: Standardize CLI args to use - instead of _.
  • #1279: Added a new CLI flag to enable the Relayer service --enable-relayer, and disabled the Relayer service by default. When supplying the --enable-relayer flag, the --relayer argument becomes mandatory, and omitting it is an error. Similarly, providing a --relayer argument without the --enable-relayer flag is an error. Lastly, providing the --keypair or --network arguments will also produce an error if the --enable-p2p flag is not set.
  • #1262: The ConsensusParameters aggregates all configuration data related to the consensus. It contains many fields that are segregated by the usage. The API of some functions was affected to use lesser types instead the whole ConsensusParameters. It is a huge breaking change requiring repetitively monotonically updating all places that use the ConsensusParameters. But during updating, consider that maybe you can use lesser types. Usage of them may simplify signatures of methods and make them more user-friendly and transparent.
  • #1367: Update to the latest version of fuel-vm.

Removed

Breaking

  • #1484: Removed --network CLI argument. Now the name of the network is fetched form chain configuration.
  • #1399: Removed relayer-da-finalization parameter from the relayer CLI.
  • #1338: Updated GraphQL client to use DependentCost for k256, mcpi, s256, scwq, swwq opcodes.
  • #1322: The manual_blocks_enabled flag is removed from the CLI. The analog is a debug flag.

What's Changed

New Contributors

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.20.4...v0.21.0-rc.1

fuel-core - v0.20.8

Published by xgreenx 12 months ago

fuel-core - v0.20.7

Published by xgreenx about 1 year ago

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.20.6...v0.20.7

fuel-core - v0.20.6

Published by xgreenx about 1 year ago

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.20.5...v0.20.6

fuel-core - v0.20.5

Published by xgreenx about 1 year ago

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.20.4...v0.20.5

fuel-core - v0.19.2

Published by xgreenx about 1 year ago

Release v0.19.2

Hotfix patch to fuel-core 0.19 to avoid spamming eth rpc when errors occur.

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.19.1...v0.19.2

fuel-core - v0.20.4

Published by xgreenx about 1 year ago

Release 0.20.4

Some improvements for the infrastructure.

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.20.3...v0.20.4

fuel-core - v0.20.3

Published by xgreenx about 1 year ago

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.20.2...v0.20.3

fuel-core - v0.20.2

Published by xgreenx about 1 year ago

Release v0.20.2

The release adds parallel predicate verification and fixes the Receipt GraphQL serialization bug.

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.20.1...v0.20.2

fuel-core - v0.20.1

Published by xgreenx over 1 year ago

Release v0.20.1

The release brings a couple of new breaking changes from the fuel-vm 0.35.0 with bugfixes. Check the description of the VM release for more details.

The fuel-core release mostly improved the internal codebase but also brought some breaking changes:

  • Removed Trigger::Hybrid PoA block trigger mode. Only Trigger::Instante and Trigger::Interval are available for block production now. The main mode for testnets and mainnet will be Interval.
  • Removed support for OpaqueReceipt and the Receipt type doesn't have the raw_payload field anymore.
  • A Receipt type got two new variants: Mint and Burn. The corresponding opcodes emit these new events.
  • The AssetId is derived from ContractId and additional nonce. So the ContractId and AssetId can't be the same anymore.

What's Changed

New Contributors

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.19.1...v0.20.1

fuel-core - v0.17.13

Published by xgreenx over 1 year ago

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.17.12...v0.17.13

fuel-core - v0.19.1

Published by xgreenx over 1 year ago

The release updates default gas prices.

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.19.0...v0.19.1

fuel-core - v0.19.0

Published by xgreenx over 1 year ago

Overview

The release uses fuel-vm 0.34 that contains many breaking changes from v0.32, v0.33 and v0.34. Please check these releases to have a better understanding of all new features.

This release:

  • Supports a wide arithmetic operation that can be used by the sway to significantly optimize the size of the contracts.
  • Requires predicates to be estimated before submission to the blockchain. The fuel_tx::Transaction has a estiamte_predicates method that allows estimating transactions without any queries, and fuel_core_client provides and additional API endpoint, esitamte_predicates to the same thing.
  • The fuel_core_client now uses rust-based types instead of cynic GraphQL types. It should simplify the use of the client and remove work with raw strings.
  • SMT works much faster now and it improves the performance of the Create transaction with storage slots.
  • The fuel_core_client provides a new submit_and_await endpoint that submits the transaction and awaits its status. It removes the chance of missing notifications about the transaction.
  • The block producer node checks that it has the last network block height before producing blocks.

What's Changed

New Contributors

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.18.3...v0.19.0

fuel-core - v0.18.3

Published by xgreenx over 1 year ago

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.18.2...v0.18.3

fuel-core - v0.18.2

Published by xgreenx over 1 year ago

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.18.1...v0.18.2

fuel-core - v0.17.12

Published by xgreenx over 1 year ago

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.17.11...v0.17.12

fuel-core - v0.18.1

Published by xgreenx over 1 year ago

What's Changed

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.18.0...v0.18.1

fuel-core - v0.18.0

Published by xgreenx over 1 year ago

The change bumps the version to 0.18.0 and exposes sync_max_get_header and sync_max_get_txns in the helm chart.

Release 0.18.0

Overview

A new release brings:

  • Optimization for the execution based on the performance from beta 3 and on internal benchmarks. Improved metrics gathering.
  • Stabilization and better test coverage of the fuel-vm. We removed almost all unsafe code and added test cases for each opcode. Fixed some edge cases with memory in the fuel-vm.
  • Fully integrated Merkle trees and filled all malleable fields in the transactions.
  • Added retryable messages, removed redundant fields from it, and updated the API to support a new commitment schema.

What's Changed

Breaking

All changes

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.17.3...v0.18.0

fuel-core - v0.17.11

Published by xgreenx over 1 year ago

What's Changed

  • Replaced combined column_key with an array of hash maps.
  • Added RocksDB LRU cache for uncompressed rows. It speeds up the loading of objects from the database two times.
  • Optimized the deserialization of the contracts via the OptimizedContract wrapper type. Instead of 53% now it takes only 10% of the time.
  • Replaced all values Vec<u8> with Arc<Vec<u8>> to avoid cloning because we use it only for deserialization, and we can't consume the actual Vec<u8>. It is helpful for MemoryStore and MemoryTransactionView.
  • Updated the MemoryStore to use BTreeMap instead of HashMap. It significantly improved the performance of the iter_all without RocksDB. Without this optimization, a new e2e failed for --no-default-features build with a timeout(but worked with RocksDB).
  • Simplified the PrometheusExtension to work without the lock.
  • Use a new fuel-vm 0.26.3 with disabled logging for instruction function.
  • Use tokio_rayon::spawn_fifo to run dry runs instead of manual semaphore and tokio::spawn_blocking.
  • Removed 5 second delay for dry runs caused by the relayer.

For more information check the https://github.com/FuelLabs/fuel-core/pull/1157.

Full Changelog: https://github.com/FuelLabs/fuel-core/compare/v0.17.10...v0.17.11