Conversation
xgreenx
commented
Nov 23, 2023
| }, | ||
| }; | ||
|
|
||
| struct TestContext { |
Collaborator
Author
There was a problem hiding this comment.
I simply moved it from the fuel-core-chain-config crate
| tracing = "0.1" | ||
|
|
||
| [dev-dependencies] | ||
| fuel-core = { workspace = true } |
Collaborator
Author
There was a problem hiding this comment.
It causes cycle dependencies during publishing rust-lang/cargo#4242.
bvrooman
reviewed
Nov 24, 2023
bvrooman
approved these changes
Nov 24, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Version 0.21.0
This release focuses on preparing
fuel-corefor the mainnet environment:Besides that, there are more concrete changes:
--debugflag that enables additional functionality like a debugger.Minttransaction to accumulate the fee from block production inside the contract defined by the block producer.FuelVM received a lot of safety and stability improvements:
no_stdand 32 bit system support. This opens doors for fraud proving in the future.ChainIdfrom thePredicateIdcalculation, allowing the use of predicates cross-chain.ECALinstruction that allows adding custom functionality to the VM. It can be used to create unique rollups or advanced indexers in the future.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.
Added
gtfopcode sanity check.vm_initialization.--api-request-timeoutargument to control TTL for GraphQL requests.no_stdcompatibility.MessageStatusfor a specific message (byNonce).baseAssetIdtoFeeParametersin the GraphQL API.envfeature. This allows users to conveniently supply CLI arguments in a secure and IDE-agnostic way.submit_and_await_commit_with_receiptsmethod forFuelClient.ED19andECR1instructions.Changed
MemoryTransactionViewbyCheckpointdatabase in the benchmarks.fuel-vmtov0.40.0. It brings some breaking changes into consensus parameters API because of changes in the underlying types.k256,s256andmcpiinstructions.2to60seconds, as suggested in this issue.message_proof.ethersversion to2to fix an issue withtungstenite.logcrate internally in favor oftracingcrate.todo.DiscoveryEventand useKademliaEventdirectly inDiscoveryBehavior.Noneto requester and log error.types::ConsensusParametersin favour offuel_tx:ConsensusParameters.It simplifies the maintenance and updating of the events, requiring only putting the event definition into the codebase of the relayer.
estimate_predicatesendpoint to utilize all available threads.Breaking
ConsensusVoteandNewBlockevents.fuel-vmtov0.42.0. It introduces transaction policies that changes layout of the transaction. FOr more information check the v0.42.0 release.DependentCostinto "light" and "heavy" operations.ContractIdinstead ofAddress. The block producer should deploy its contract to receive the transaction fee. The collected fee is zero until the recipient contract is set.Minttransaction is reworked with new fields to support the account-base model. It affects serialization and deserialization of the transaction and also affects GraphQL schema.Minttransaction is the last transaction in the block instead of the first.base_chain_heighttoda_heightand return current relayer height instead of latest Fuel block height.nonceinstead ofmessage_idmetricsfeature flag from the fuel-core crate, and metrics are now included by default.base_asset_idto theFeeParametersdefinition inConsensusParameters, as well as default values forbase_asset_idin thebetaanddevchain specifications.The
debugflag 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_validationtofalse.--sync-max-header-batch-requestsCLI argument, and renamed--sync-max-get-txnsto--sync-block-stream-buffer-sizeto better represent the current behavior in the import.-instead of_.--enable-relayer, and disabled the Relayer service by default. When supplying the--enable-relayerflag, the--relayerargument becomes mandatory, and omitting it is an error. Similarly, providing a--relayerargument without the--enable-relayerflag is an error. Lastly, providing the--keypairor--networkarguments will also produce an error if the--enable-p2pflag is not set.ConsensusParametersaggregates 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 wholeConsensusParameters. It is a huge breaking change requiring repetitively monotonically updating all places that use theConsensusParameters. 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.Removed
Breaking
--networkCLI argument. Now the name of the network is fetched form chain configuration.relayer-da-finalizationparameter from the relayer CLI.DependentCostfork256,mcpi,s256,scwq,swwqopcodes.manual_blocks_enabledflag is removed from the CLI. The analog is adebugflag.What's Changed
fuel-vmby @xgreenx in Added changelog in the same way as we did forfuel-vm#1287_in CLIlongarguments with-by @MitchTurner in Replace all instances of_in CLIlongarguments with-#1290enable-relayerflag tofuel-coreCLI by @bvrooman in feat: Addenable-relayerflag tofuel-coreCLI #1279submit_and_await_commit_with_receiptsmethod by @xgreenx in Implementedsubmit_and_await_commit_with_receiptsmethod #1304envfeature by @bvrooman in feat: Enable .env file loading usingenvfeature #1308webpkiby @xgreenx in Fix audit CI forwebpki#1319debugCLI flag. by @xgreenx in Added support fordebugCLI flag. #1322Noneto requester and log error by @MitchTurner in Add error handling for P2P requests to returnNoneto requester and log error #1342fuel-vmto 0.37.0 by @bvrooman in chore: Upgradefuel-vmto 0.37.0 #1338MessageProofquery by @MitchTurner in Replace message_id with nonce inMessageProofquery #1363.envfile and duplicated service by @xgreenx in Use right level of error for.envfile and duplicated service #1372MessageStatusby @MitchTurner in Add query and handling forMessageStatus#1371base_chain_heighttoda_heightand return current relayer height instead of latest Fuel block height by @xgreenx in Renamedbase_chain_heighttoda_heightand return current relayer height instead of latest Fuel block height #1374DiscoveryEventand useKademliaEventinstead by @MitchTurner in RemoveDiscoveryEventand useKademliaEventinstead #1377ethersversion to2to fix an issue withtungsteniteby @xgreenx in Up theethersversion to2to fix an issue withtungstenite#1390cargo updateweekly by @xgreenx in Updated CI to runcargo updateweekly #1415cargo updateweekly by @xgreenx in CIcargo updateweekly #1416cargo updateby @github-actions in Weeklycargo update#1417fuel-corecrates by @bvrooman in feat: Support no_std and WASM compilation forfuel-corecrates #1411scwq,swwqandsrwqopcodes by @xgreenx in Update benchmarking and collecting forscwq,swwqandsrwqopcodes #1427cargo updateby @github-actions in Weeklycargo update#1438#1435tomasterby @xgreenx in Applying#1435tomaster#1440flushduring end of theFuelServiceby @xgreenx in Callflushduring end of theFuelService#1456maintomasterby @kayagokalp in chore: fix releasy test tracking branch frommaintomaster#1460cargo updateby @github-actions in Weeklycargo update#1461DB::repairbreaks the table for checkpoints by @xgreenx inDB::repairbreaks the table for checkpoints #1463fuel-vmtov0.40.0by @xgreenx in Bumpingfuel-vmtov0.40.0#1468cargo updateby @github-actions in Weeklycargo update#1471networkparameter from CLI by @bvrooman in chore: Removenetworkparameter from CLI #1484cargo updateby @github-actions in Weeklycargo update#1498vm_initializationby @xgreenx in Added price benchmark forvm_initialization#1502gtfopcode by @MitchTurner in Sanity-checkgtfopcode #1503New Contributors
cargo update#1417Full Changelog: v0.20.8...v0.21.0