Open martyall opened 4 years ago
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)
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:
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: