kepler icon indicating copy to clipboard operation
kepler copied to clipboard

Make Gas checker antehandler

Open martyall opened this issue 5 years ago • 0 comments

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?)

martyall avatar Jan 15 '20 16:01 martyall