go-ethereum/eth/tracers
Matthieu Vachon 32c14945da Full OnGasConsumed loop and added GasChangeReason
With this change, the full gas loop of a transaction can be tracked going from initial balance (`gasLimit`) back down to 0.

I validated on my regression test suite that those conditions applied to all transactions I have:
- First `OnGasConsumed` is always going from 0 -> `trx.gasLimit`
- Last `OnGasConsumed` "new value" is always 0
- trx.gasLimit - last balance of last `OnGasConsumed` is equal to `trx.gasUsed`

The addition of `reason` make it possible for a logger to filter out unwanted signal, for example one could want to drop all OpCode related gas change and only cares about "transaction" level. The reason is also a good thing for visibility and for creating powerful debug tools for Ethereum transaction execution.
2023-08-02 09:16:45 -04:00
..
internal/tracetest fix merge conflict 2023-07-27 14:41:47 +02:00
js emit err on tx validation failure 2023-07-26 20:07:13 +02:00
logger Full OnGasConsumed loop and added GasChangeReason 2023-08-02 09:16:45 -04:00
native Full OnGasConsumed loop and added GasChangeReason 2023-08-02 09:16:45 -04:00
api.go fix merge conflict 2023-07-27 14:41:47 +02:00
api_test.go fix merge conflict 2023-07-27 14:41:47 +02:00
firehose.go Fixed BalanceChange for suicide withdraw not being recorded 2023-07-31 21:46:51 -04:00
firehose_test.go Further work towards having a compatible Firehose code (at battlefied block #15) 2023-07-28 17:05:21 -04:00
noop.go Full OnGasConsumed loop and added GasChangeReason 2023-08-02 09:16:45 -04:00
printer.go Full OnGasConsumed loop and added GasChangeReason 2023-08-02 09:16:45 -04:00
tracers.go provide StateLogger for short-lived tracers 2023-06-28 18:00:44 +02:00
tracers_test.go all: remove debug-field from vm config (#27048) 2023-04-04 09:50:13 -04:00
tracker.go eth/traces: add state limit (#25812) 2022-10-06 10:48:04 +02:00
tracker_test.go eth/traces: add state limit (#25812) 2022-10-06 10:48:04 +02:00