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

Make Gas checker antehandler #191

Open
martyall opened this issue Jan 15, 2020 · 0 comments
Open

Make Gas checker antehandler #191

martyall opened this issue Jan 15, 2020 · 0 comments

Comments

@martyall
Copy link
Collaborator

there's a gas field in the raw transaction which says how much gas the user watns to spend

then somewhere in the application global settings/config there gas cost parameter (where gas cost is in Coin ~ (CoinType, Amount)

the gas checker needs to make sure that the user has enough "gas money" to pay for potentially using all the gas requested.

At the end of the transaction, the gas checker will debit the account (but where does it go?)

Things to figure out:

  • How do we keep track of the global settings/config which might change (SetOption abci message)
  • Where does the debiting go to? (can we burn it for now?)
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