-
Notifications
You must be signed in to change notification settings - Fork 246
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
Fix bug in fraud proof transaction fee value, and combine storage #3320
Conversation
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.
Good catch!
To further avoid such inconsistency I think we can use InvalidInherentExtrinsicData
(perhaps need rename to InherentExtrinsicData
) to construct the inherent extrinsic in domain CreateInherentDataProvider
instead of querying these data through consensus runtime API one by one.
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.
make sense!
Refactor seems to be worth it!
Good to go once Ning's suggestion is included
I’d prefer to make this change after all these PRs merge, because it would make each of my 3 open PRs more complicated. It seems like a cleanup we could do once all the fraud proofs are combined. |
c74ce3a
to
b3af00c
Compare
0653689
to
880c03e
Compare
b3af00c
to
797ab57
Compare
880c03e
to
a2c0a89
Compare
The base branch was changed.
The fraud proof was calculating the consensus transaction byte fee as
1
when dynamic cost of storage was disabled. But theconsensus_chain_byte_fee()
runtime API returnedDOMAIN_STORAGE_FEE_MULTIPLIER
in that case. This PR makes the values consistent by fixing the fraud proof calculation.It also moves the fee into the combined fraud proof storage.
Part of ticket #3281.
Code contributor checklist: