-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: ⏫ upgrade to Polkadot SDK stable2409 #228
Conversation
…ng events in tests
mod weights; | ||
|
||
extern crate alloc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why this is here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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)
Update from Polkadot SDK stable2407 to stable2409
Node Dev
:MetricsService
and add public constructor toRpcHandlers
build_network
, updated in SH.polkadot-parachain-lib
helper library that can be used to build a parachain node.sp-consensus-slots
. This function returns the timestamp when the slot began.env_logger
withsp_tracing
because of an issue withenv_logger
andgum
.env_logger
.sc-service
API by not requiring the wholeConfiguration
object and using specific configuration options instead.BestBlock
events only forNewBlock
reports. This ensures that thechainHead_v1_follow
method of the RPC-v2 API is always reporting aBestBlock
event after aNewBlock
BestBlock
event for a block not previously reported viaNewBlock
because 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 newBestBlock
event is emitted:&mut self
with&self
inBlockImport::import_block()
, since independent blocks can technically be imported concurrently (and in practice it was called throughArc
anyway).Runtime Dev
:pallet::getter
usage from thetransaction-payment
pallet.MaybeConsideration
extension trait forConsideration
. This allows the management of tickets that may represent no cost.Consideration
is used for migrating pallets that utilize theCurrency
andfungible
traits 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_call
andDryRunApi.dry_run_xcm
functions used to populateforwarded_xcms
with 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-emulator
from_mel
forFootprint
. This allows to generate aFootprint
type by calculating the Maximum Encoded Length of a generic type.AssetExchanger
to 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).PendingConfigs
storage item public, which holds a list of configuration changes each with a session index at which it should be applied.pallet::getter
frompallet-balances
.xcm::v4::PalletInfo
public.polkadot-sdk
. In addition, theProofSizeExt
extension is available during benchmarking.polkadot-sdk
repo 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-preset
option to allow using different genesis preset names.Node Operator
:—experimental-rpc-endpoint
to specify listed address.deny_unsafe
from the RPC implementation.—public-addr
CLI parameter when starting a validator node. In the future, this will be a hard failure.Runtime User
: