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

Add new syscall: System.Runtime.BurnGas #2420

Merged
merged 1 commit into from
Apr 1, 2021
Merged

Conversation

erikzhang
Copy link
Member

No description provided.

@erikzhang erikzhang added this to the NEO 3.0 milestone Mar 31, 2021
Copy link
Member

@shargon shargon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any use case?

@Qiao-Jin
Copy link
Contributor

Qiao-Jin commented Apr 1, 2021

I suppose this is used to burn GAS if there's too much GAS in circulation?

@erikzhang
Copy link
Member Author

engine.AddGas(GetPrice(engine.Snapshot));

It allows normal contracts to do the same things as here.

@erikzhang erikzhang merged commit df70368 into master Apr 1, 2021
@erikzhang erikzhang deleted the syscall-burngas branch April 1, 2021 07:10
@shargon shargon mentioned this pull request Apr 1, 2021
@ixje ixje mentioned this pull request May 3, 2021
7 tasks
ixje added a commit to CityOfZion/neo-mamba that referenced this pull request May 11, 2021
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.

3 participants