kepler
kepler copied to clipboard
Make Gas checker antehandler
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?)