Excerpt from page 8 of the yellow paper:
I fully understand that contracts can self-destruct and, when that happens, according to this thread, all the balance is refunded to the address specified as a parameter.
In equation 64, is that what happens? Are all balances of accounts destroyed in a state transition added up? The only prior reference to a function named R is within the context of transaction receipts and I'm skeptical that is what is added up here.
If yes, what is the rationale behind the next equation, no. 65, to set a limit on the refund?
Scenario:
- Gas limit is 60,000 and gas price 5 gwei
- Transaction uses only 20,000
- An account holding 1,000,000 gwei or ㆔0,01 is destroyed in the process
- As
Tgis 60,000 andg'is 40,000,((Tg - g') / 2)is 10,000 which, at the rate of 5 gwei, means 50,000 gwei or ㆔0,00005
Would the caller be refunded only g' + ㆔0,00005 instead of g' + ㆔0,01?

