Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Geth --historymode flag #31277

Open
fjl opened this issue Feb 27, 2025 · 0 comments · May be fixed by #31325
Open

Geth --historymode flag #31277

fjl opened this issue Feb 27, 2025 · 0 comments · May be fixed by #31325

Comments

@fjl
Copy link
Contributor

fjl commented Feb 27, 2025

We need a way to configure history sync in geth, so that users can enabled the pruned mode. Eventually, Geth will default to pruned history by default.

This should be similar to --syncmode and --gcmode, i.e. a union type in eth/ethconfig. For simplicity, we should not allow configuring an arbitrary pruning block for this. The two options will be:

type HistoryMode int

const (
     AllHistory HistoryMode = iota
     PrunedHistory
)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
1 participant