-
Notifications
You must be signed in to change notification settings - Fork 206
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
Correct explanation of partialFee
#221
base: master
Are you sure you want to change the base?
Conversation
According to https://wiki.polkadot.network/docs/build-node-interaction#fetching-a-block, `partialFee` contains the weight and length fee, not just the weight fee.
We should look to the code for real behavior, not just wiki: https://github.com/paritytech/substrate/blob/master/frame/transaction-payment/src/lib.rs#L506
So it does include tip |
@shawntabrizi I believe you're looking at the wrong function. Isn't the payment info populated by query_info? I mean... the transaction info cannot contain any information about the tip before signing, right? |
I believe the tip information is included in the same extrinsic payload that is signed and submitted to chain. Pretty sure I am looking at the right function, as I am not aware of the term "partialFee" being used elsewhere. |
@shawntabrizi Thank you for helping again, Shawn. I'm fairly clueless about javascript/typescript, so I'm not sure exactly how the code of polkadot.js works. But I think we may not be talking about the same thing. Apologies for the long comment, I'll try to explain. First of all, I understand that the tip is part of the payload that is submitted to the chain. The question is which types of fee are included in the
Regarding the underlying Rust code, I'm not sure I understand what you're saying either. The term partial fee appears only in the code of
I don't see any relation between So, long story short, I'm not sure I understand where you're going with the pieces of code you posted, but I'm fairly convinced that the behavior of polkadot.js and the polkadot-wiki are correct. |
According to https://wiki.polkadot.network/docs/build-node-interaction#fetching-a-block,
partialFee
contains the weight and length fee, not just the weight fee.