go-ethereum/cmd/evm/internal/t8ntool
CPerezz 46b7e78cc0
cmd/evm/internal/t8ntool: panic on database corruption (#32776)
These functions were previously ignoring the error returned by both
`statedb.Commit()` and the subsequent `state.New()`,
which could silently fail and cause panics later when the `statedb` is
used.
This change adds proper error checking and panics with a descriptive
error
message if state creation fails.

While unlikely in normal operation, this can occur if there are database
corruption issues or if invalid root hashes are provided, making
debugging
significantly easier when such issues do occur.

This issue was encountered and fixed in
https://github.com/gballet/go-ethereum/pull/552
where the error handling proved essential for debugging

cc: @gballet as this was discussed in a call already.
2025-09-29 12:51:46 +02:00
..
block.go all: refactor so NewBlock, WithBody take types.Body (#29482) 2024-04-30 14:55:08 +02:00
execution.go cmd/evm/internal/t8ntool: panic on database corruption (#32776) 2025-09-29 12:51:46 +02:00
file_tracer.go cmd/evm: refactor handling output-files for t8n (#30854) 2025-01-21 15:35:03 +08:00
flags.go t8ntool: add optional call frames to json logger (#29353) 2024-03-27 16:12:57 +01:00
gen_execresult.go all: implement eip-7702 set code tx (#30078) 2024-12-16 11:29:37 +01:00
gen_header.go cmd/evm: cancun-updates for b11r and t8n -tools (#28195) 2023-10-03 03:26:33 -04:00
gen_stenv.go cmd/evm: cancun-updates for b11r and t8n -tools (#28195) 2023-10-03 03:26:33 -04:00
transaction.go miner, core, core/txpool: implement EIP 7825 - TX Gas Limit Cap (#31824) 2025-07-08 15:23:22 +02:00
transition.go cmd/evm: refactor handling output-files for t8n (#30854) 2025-01-21 15:35:03 +08:00
tx_iterator.go core/types: cleanup tx signer logic (#31434) 2025-03-19 16:05:44 +01:00
utils.go all: fix typos in comments (#29186) 2024-03-07 22:56:19 +01:00