Re:Students at Berlin University Build Chess Game on Ethereum
by mikeash on Tuesday September 06, 2016 @10:36PM
(#12440661)
I've heard of gas, but I'm not entirely familiar with the cap. I thought it was determined by how much the contract wanted to spend. Are you saying there's a fixed cap as well?
[ Parent
| on HN ]
Re:Students at Berlin University Build Chess Game on Ethereum
by tscs37 on Wednesday September 07, 2016 @01:12AM
(#12441080)
Upfront all transactions must pay for the computation they expect to have. The user (or whatever) decided how much has may be spent.
When the transaction runs, gas is consumed. If the transaction finished or there is no more gas, computation stops.
Now, transactions have no limit but blocks of transactions have. This is to prevent a single person creating and mining gigantic transaction to stall the network.
This limit is dynamic and you can raise it by having the network use more gas until the moving average climbs high enough.
Re:Students at Berlin University Build Chess Game on Ethereum
by mikeash on Wednesday September 07, 2016 @09:57AM
(#12443396)
Makes sense, thanks for explaining! Basing the limit on the moving average is an interesting choice and I wonder what sort of long-term consequences it will have on people's behavior. Seems like there's some potential for weird feedback loops.