mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
Fixes #31916. Snapshot the on-disk size of the prunable chain-freezer tables (bodies and receipts) before and after the prune step, and include the delta as cleared= on the existing "History pruning completed" log line. Operators see the impact of the run immediately without inspecting the data directory by hand. The header and hash tables are intentionally excluded from the measurement because they are configured with prunable=false and are never truncated. If AncientSize fails for any table the helper returns 0 so the log shows "cleared=0.00 B" rather than a partial, misleading figure. |
||
|---|---|---|
| .. | ||
| testdata | ||
| accountcmd.go | ||
| accountcmd_test.go | ||
| attach_test.go | ||
| bintrie_convert.go | ||
| bintrie_convert_test.go | ||
| chaincmd.go | ||
| chaincmd_test.go | ||
| config.go | ||
| consolecmd.go | ||
| consolecmd_test.go | ||
| dbcmd.go | ||
| exportcmd_test.go | ||
| genesis_test.go | ||
| logging_test.go | ||
| logtestcmd_active.go | ||
| logtestcmd_inactive.go | ||
| main.go | ||
| misccmd.go | ||
| run_test.go | ||
| snapshot.go | ||