go-ethereum/cmd
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
..
abidump all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
abigen cmd/abigen, accounts/abi/bind: implement abigen version 2 (#31379) 2025-03-17 15:56:55 +01:00
blsync beacon/blsync: add checkpoint import/export file feature (#31469) 2025-04-03 16:04:11 +02:00
clef cmd/clef: update Safe API documentation links in changelog (#32136) 2025-07-09 14:09:11 -06:00
devp2p cmd/devp2p/internal/ethtest: fix possible infinite wait (#32551) 2025-09-08 12:33:17 +02:00
era cmd/era: fix iterator error source handling in checkAccumulator (#32698) 2025-09-22 14:27:54 -06:00
ethkey cmd: fix some typos in readmes (#29405) 2024-04-11 14:06:49 +03:00
evm cmd/evm/internal/t8ntool: panic on database corruption (#32776) 2025-09-29 12:51:46 +02:00
geth all: add bpo1 and bpo2 overrides (#32737) 2025-09-25 10:21:41 +02:00
keeper go.work, build: remove workspace file (#32699) 2025-09-22 22:20:47 +02:00
rlpdump build: update to golangci-lint 1.61.0 (#30587) 2024-10-14 19:25:22 +02:00
utils all: refactor to use builtin max/min (#32694) 2025-09-25 07:05:27 -06:00
workload cmd: fix typo in comment (#32501) 2025-08-26 13:50:19 +02:00