-
Notifications
You must be signed in to change notification settings - Fork 243
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
Upgrade Substrate and Frontier #1954
Conversation
…ith-db` is it not really necessary
…orresponding Frontier fork updates
5f0db3e
to
6b542f4
Compare
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.
construct_runtime seems much more readable now.
LGTM
Recall what it looked like 2 years ago. I hope they will get to attribute macro there at some point too 🙂 |
Okay, looks like something else related to transaction pool needs to be changed to fix tests 😕 |
@vedhavyas @NingLin-P I'll need your help fixing domains tests here |
Interesting, looks like to be able to submit transactions this is now required:
Let me fix this and see if tests pass. |
Is it possible to register the extension just once like |
I believe it should be possible, but it is also recommended to not do that. |
We had to introduce Inherent data providers since upstream introduced `pending` tags for Eth rpc calls. When an rpc call with pending tag is received, we construct pending block by building a new block with extrinsics from tx pool. So they use inherent data providers to provide inherent data. For now, we just provide timestamp since that is always required. I have added an TODO to handle any new inherents that needs to be present. Ex runtime upgrade can be added in later PR
Upgrade frontier deps
Hm, merge conflicts already 😒 |
# Conflicts: # crates/subspace-node/Cargo.toml # crates/subspace-node/src/domain/cli.rs
Frontier updates are done in polkadot-evm/frontier#1193, Substrate updates are done in
subspace-v6
branch in our fork (rebased due to various conflicts, primarily with block relay).This upgrades us to latest commit in the old Substrate repo, I'll upgrade us to latest
polkadot-sdk
in a separate PR.Interesting changes:
GasLimitPovSizeRatio
,weight_limit
andproof_size_base_cost
were introduced, seem to be parachain-specific and set to defaults.pending
support foreth_getBlockByNumber
: Addpending
support foreth_getBlockByNumber
polkadot-evm/frontier#1048Introduced
pending_block
RPC runtime API, I used implementation from template in the PROther important upstream changes that resulted in downstream modifications:
GenesisBuild<T,I>
deprecated.BuildGenesisConfig
added. paritytech/substrate#14306Block
toframe_system
instead ofconstruct_runtime
and removesHeader
andBlockNumber
paritytech/substrate#14437paritytech/substrate#14709 was promising, but not sufficient, so I opened paritytech/polkadot-sdk#1533
Code contributor checklist: