Upgrade Substrate to stable2409
#3078
Open
+2,025
−2,405
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.
This upgrades Substrate to
stable2409
upstream release.A lot of changes are caused by my refactoring of syncing implementation. I didn't take advantage of it yet to reduce the diff.
I have rebased most of the patches we had that are not yet upstreamed, notable exception is Ved's early runtime patch for state version and some of Shamil's patches for Snap sync that are no longer needed (and I have simplified the remaining since they re-exported more than needed with latest upstream refactoring).
On top of stable release I have also backported following PRs that were already merged into
master
or remain open, but have a good chance of getting in soon-ish:RuntimeVerison
type and usesystem_version
to derive extrinsics rootStateVersion
instead ofV0
paritytech/polkadot-sdk#4257sp_runtime::RuntimeString
and replace withCow<'static, str>
orString
depending on use case paritytech/polkadot-sdk#5693 allowed to get rid ofpatch_domain_runtime_version
All of this is in https://github.com/autonomys/polkadot-sdk/tree/subspace-v8, top commit of which is used in this PR.
Frontier has unmerged polkadot-evm/frontier#1504, which I cloned into https://github.com/autonomys/frontier/tree/subspace-v9 and used here.
I recommend ignoring
.toml
files during review due to trivial changes (mostly just hash updates and minor dependency changes where necessary).Code contributor checklist: