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

Question about BUYGAS #769

Closed
ilyar opened this issue Sep 12, 2023 · 1 comment
Closed

Question about BUYGAS #769

ilyar opened this issue Sep 12, 2023 · 1 comment

Comments

@ilyar
Copy link
Contributor

ilyar commented Sep 12, 2023

In the recent TVM Upgrade (#686) a new useful opcode was added:

x{F802} @Defop GASCONSUMED
// ( -- g_c) returns gas consumed by VM so far 26 gas

which actually replaces the opcode:

x{F802} @Defop BUYGAS
// (x -- ) computes the amount of gas that can be bought for x nanograms,
// and sets g_l accordingly in the same way as SETGASLIMIT

Which is still described in the document tvm.pdf but has not yet been implemented.

Please reveal the details of the reasoning behind the decision.

@ilyar
Copy link
Contributor Author

ilyar commented Sep 15, 2023

@ilyar ilyar closed this as completed Sep 15, 2023
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

No branches or pull requests

1 participant