feat: ⏫ upgrade to Polkadot SDK stable2409#228
Merged
Conversation
…ng events in tests
ffarall
approved these changes
Oct 14, 2024
| mod genesis_config_presets; | ||
| mod weights; | ||
|
|
||
| extern crate alloc; |
Collaborator
There was a problem hiding this comment.
Do you know why this is here?
Contributor
Author
There was a problem hiding this comment.
This is because the runtime is a no_std crate that supports allocation (more specifically, we use alloc in the genesis_config_presets.rs file), and alloc is a "sysroot" crate which is distributed with Rust itself, so the 2018 Rust update that removed the need for extern crate syntax doesn't apply for it (more info here)
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.
Update from Polkadot SDK stable2407 to stable2409
Node Dev:MetricsServiceand add public constructor toRpcHandlersbuild_network, updated in SH.polkadot-parachain-libhelper library that can be used to build a parachain node.sp-consensus-slots. This function returns the timestamp when the slot began.env_loggerwithsp_tracingbecause of an issue withenv_loggerandgum.env_logger.sc-serviceAPI by not requiring the wholeConfigurationobject and using specific configuration options instead.BestBlockevents only forNewBlockreports. This ensures that thechainHead_v1_followmethod of the RPC-v2 API is always reporting aBestBlockevent after aNewBlockBestBlockevent for a block not previously reported viaNewBlockbecause of a race condition. Now, instead of relying on the client’s info they use the last finalized block to emit a new event. So there are two cases when a newBestBlockevent is emitted:&mut selfwith&selfinBlockImport::import_block(), since independent blocks can technically be imported concurrently (and in practice it was called throughArcanyway).Runtime Dev:pallet::getterusage from thetransaction-paymentpallet.MaybeConsiderationextension trait forConsideration. This allows the management of tickets that may represent no cost.Considerationis used for migrating pallets that utilize theCurrencyandfungibletraits for holds and freezes, which we do, so it might be useful in the future.pallet-migrations: fix index access for singular migrations.DryRunApi.dry_run_callandDryRunApi.dry_run_xcmfunctions used to populateforwarded_xcmswith all the existing messages in the queues at the time. Now, existing (irrelevant) messages are cleared when dry-running, meaning only the messages produced by the dry-run call (or xcm) will be returned inforwarded_xcms.xcm-emulatorfrom_melforFootprint. This allows to generate aFootprinttype by calculating the Maximum Encoded Length of a generic type.AssetExchangerto swap fees to use for delivery fees, if possible.AssetExchanger. Maybe we could allow to swap other assets to DOT using the AssetHub, but I believe (not confirmed) those would not be native DOTs and we would end up managing two kinds of DOTs (native and derivative).PendingConfigsstorage item public, which holds a list of configuration changes each with a session index at which it should be applied.pallet::getterfrompallet-balances.xcm::v4::PalletInfopublic.polkadot-sdk. In addition, theProofSizeExtextension is available during benchmarking.polkadot-sdkrepo has for tests of system chains, but I believe this should be done in the PR that adds StorageHub as a system chain to the repo.OverlayedChanges, which were reset. It also adds the—genesis-builder-presetoption to allow using different genesis preset names.Node Operator:—experimental-rpc-endpointto specify listed address.deny_unsafefrom the RPC implementation.—public-addrCLI parameter when starting a validator node. In the future, this will be a hard failure.Runtime User: