From 921f30f655369188161e62d53019c48364beeea8 Mon Sep 17 00:00:00 2001 From: Zhang Guyu Date: Thu, 20 Jul 2023 15:30:22 +0800 Subject: [PATCH] add doc for Ancient Pruner --- docs/features/Ancient Pruner.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 docs/features/Ancient Pruner.md diff --git a/docs/features/Ancient Pruner.md b/docs/features/Ancient Pruner.md new file mode 100644 index 0000000000..9ba31215e2 --- /dev/null +++ b/docs/features/Ancient Pruner.md @@ -0,0 +1,7 @@ +# Ancient Pruner + +## Why +The chain freezer improves efficiency by moving the ancient chain items into their own flat files. This allows us to split the database into an active set, which requires a fast SSD disk, and an immutable freezer set, for which a slower HDD disk is sufficient. + +However, for Geth running as a state node, ancient data is not needed and it's more beneficial to delete it directly. If the user enables "ancient.prune", the system will completely discard the ancient blocks instead of writing them to the freezer database. +