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.
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
EVM + Weight v2 support #1039
EVM + Weight v2 support #1039
Changes from 32 commits
4bab80e
416d618
24c91b5
3dff83e
3ace0af
6deaacb
74708f5
8ea977b
dc95f98
ac5ed2d
45c9e25
dc33686
312146f
88c7c7c
163b0c5
a17e331
8cc4568
3646639
87e5f6f
cc4e173
eb2afed
7814419
255f663
00ffebc
5ab6432
4bb5e70
538c072
7686543
e12afd7
cd77d2d
91ce2ed
d6d7a00
83e228a
c369476
296cb2a
c8138af
34be73b
44c93c0
17abbd3
3572aad
4bbbe3d
bd734b1
0a22130
1a1a47f
a63f1d2
e59eb9c
91a5259
3915652
d09fc5b
e9df020
a8fd45e
caefbec
df032b5
e53da69
76c2f6c
6f6827a
0154cc9
881f690
eddef23
d6d4765
12fbeee
8a968e9
da32bba
5ba5fcc
6d3bfb3
ebd1486
7198ca4
d95b7ed
d9f12de
074711b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Can we put the verification into the
validate_transaction_in_pool
? In this way, you do not need to add anotherweight_limit
input params to theapply_validated_transaction
, we can handle thechecked_sub(transaction_len)
in theexecute()
function together withtransaction_len
.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.
Thank you @boundless-forest , I applied your suggestion although I'm not entirely sure if it will be reverted before merging.
@librelois removing this param means we rely 100% on the ratio-based conversion from gas_limit to pov_size_limit. Do we want to be able to keep the possibility for overriding this
weight_info
? I'm thinking in Xcm->Evm for example.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.
I think so, frontier should be generic and future proof
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.
@librelois I see what you mean but I have mixed feelings on this. On one hand I agree leaving a more open api design is easier for now, but in the other I don't see why we should: I cannot think of a case where we need the
WeightInfo
override. Also there is nothing preventing we change it in the future if we end up needing it.I think we should leave @boundless-forest suggestion by now.
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.
ok, sound's reasonable