mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
## Why this should be merged Required for [ACP-194](https://github.com/avalanche-foundation/ACPs/tree/main/ACPs/194-streaming-asynchronous-execution#gas-charged) $\lambda$ bound on gas consumption. ## How this works Hook into `core.StateTransition.TransitionDb()` as this is the bottom of all execution paths (e.g. `core.ApplyTransaction()` as used in SAE, `core.StateProcessor.Process(*Block,...)`, etc.). Once consumed gas is no longer changing (i.e. after all spends and refunds), the transaction limit is passed to the hook to determine the minimum consumption, which is applied. ## How this was tested Unit test via `core.ApplyTransaction()` as this is our entry point in SAE. --------- Signed-off-by: Arran Schlosberg <519948+ARR4N@users.noreply.github.com> Co-authored-by: Stephen Buttolph <stephen@avalabs.org> |
||
|---|---|---|
| .. | ||
| forks | ||
| bootnodes.go | ||
| config.go | ||
| config.libevm.go | ||
| config.libevm_test.go | ||
| config_test.go | ||
| dao.go | ||
| denomination.go | ||
| example.libevm_test.go | ||
| hooks.libevm.go | ||
| hooks.libevm_test.go | ||
| json.libevm.go | ||
| json.libevm_test.go | ||
| network_params.go | ||
| protocol_params.go | ||
| protocol_params.libevm.go | ||
| version.go | ||
| version.libevm.go | ||
| version.libevm_test.go | ||