Skip to content
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

VG-4356 Fix/tzindex gas price #864

Merged
merged 6 commits into from
Apr 4, 2022
Merged

Conversation

ktollec-ledger
Copy link
Contributor

Since tzindex 12 (see CHANGELOG), gas_price field has been removed.

This PR aims to add the field back by computing it using the following formula : fee / gas_limit.
Note that in Tezos, gas_price does not really makes sense, the fee is paid in full, whatever how much gas was used.
The gas_limit can however be used by the baker to check whether the call is profitable or not.

@jcoatelen-ledger jcoatelen-ledger merged commit 38eec6c into main Apr 4, 2022
@jcoatelen-ledger jcoatelen-ledger deleted the fix/tzindex-gas-price branch April 4, 2022 10:15
@jcoatelen-ledger jcoatelen-ledger changed the title Fix/tzindex gas price VG-4356 Fix/tzindex gas price Apr 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants