lighthouse/book/src
Jimmy Chen 36d8849813 Add commmand for pruning states (#4835)
## Issue Addressed

Closes #4481. 

(Continuation of #4648)

## Proposed Changes

- [x] Add `lighthouse db prune-states`
- [x] Make it work
- [x] Ensure block roots are handled correctly (to be addressed in 4735)
- [x] Check perf on mainnet/Goerli/Gnosis (takes a few seconds max)
- [x] Run block root healing logic (#4875 ) at the beginning
- [x] Add some tests
- [x] Update docs
- [x] Add `--freezer` flag and other improvements to `lighthouse db inspect`

Co-authored-by: Michael Sproul <michael@sigmaprime.io>
Co-authored-by: Jimmy Chen <jimmy@sigmaprime.io>
Co-authored-by: Michael Sproul <micsproul@gmail.com>
2023-11-03 00:12:19 +00:00
..
css Make API friendly to block explorers (#702) 2019-12-19 11:45:28 +11:00
imgs Minor revision in Lighthouse book (#4385) 2023-06-13 13:12:56 +00:00
js Add support for multiple testnet flags (#1396) 2020-07-29 06:39:29 +00:00
LaTeX Minor revision in Lighthouse book (#4385) 2023-06-13 13:12:56 +00:00
advanced_database.md Update Lighthouse book FAQ (#4510) 2023-07-31 23:51:38 +00:00
advanced_metrics.md Configurable monitoring endpoint frequency (#3530) 2022-09-05 08:29:00 +00:00
advanced_networking.md Fix some typos in "Advanced Networking" documentation (#4672) 2023-09-06 04:37:03 +00:00
advanced-datadir.md Fixing a few typos / documentation (#3531) 2022-09-05 04:50:48 +00:00
advanced-proposer-only.md Separate BN for block proposals (#4182) 2023-04-26 01:12:36 +00:00
advanced-release-candidates.md Update Lighthouse Book API and Advanced Usage section (#4300) 2023-06-02 03:17:36 +00:00
advanced.md Update Lighthouse Book API and Advanced Usage section (#4300) 2023-06-02 03:17:36 +00:00
api-bn.md Revise doc API section (#4798) 2023-10-06 04:34:47 +00:00
api-lighthouse.md Merge remote-tracking branch 'origin/unstable' into deneb-free-blobs 2023-10-16 16:33:37 +11:00
api-vc-auth-header.md Implement standard keystore API (#2736) 2022-01-30 23:22:04 +00:00
api-vc-endpoints.md Update Deneb to 1.4.0-beta.2 (devnet-9) (#4735) 2023-09-25 15:05:31 +10:00
api-vc-sig-header.md Implement VC API (#1657) 2020-10-02 09:42:19 +00:00
api-vc.md Update Lighthouse Book API and Advanced Usage section (#4300) 2023-06-02 03:17:36 +00:00
api.md Update book with missing Lighthouse endpoints (#3769) 2022-12-09 09:20:10 +00:00
builders.md fix docs about --builder (#4754) 2023-10-26 05:23:50 +00:00
checkpoint-sync.md Remove checkpoint alignment requirements and enable historic state pruning (#4610) 2023-08-21 05:02:32 +00:00
cli.md Rename Eth1/Eth2 in documents (#3021) 2022-03-02 01:05:08 +00:00
contributing.md [Contribution docs] Add GitPOAP Badge to Display Number of Minted GitPOAPs for Contributors (#3343) 2022-08-09 02:27:04 +00:00
cross-compiling.md Add maxperf build profile (#3608) 2022-09-29 06:13:33 +00:00
database-migrations.md Add commmand for pruning states (#4835) 2023-11-03 00:12:19 +00:00
developers.md Very minor own nitpicks (#4845) 2023-10-16 16:30:14 +11:00
docker.md Devnet6 (#4404) 2023-06-29 15:35:43 -04:00
faq.md Minor revision to Lighthouse Book on validator-manager (#4638) 2023-09-06 04:37:02 +00:00
graffiti.md Add support for updating validator graffiti (#4417) 2023-06-22 02:14:57 +00:00
homebrew.md Fix Homebrew link (#4822) 2023-10-18 06:52:53 +00:00
http.md Rename Eth1/Eth2 in documents (#3021) 2022-03-02 01:05:08 +00:00
installation-binaries.md Update Lighthouse book and some FAQs (#4178) 2023-04-14 01:11:45 +00:00
installation-priorities.md Reformat tables and add borders (#3377) 2022-07-27 00:51:07 +00:00
installation-source.md upgrade to libp2p 0.52 (#4431) 2023-08-02 00:59:34 +00:00
installation.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
intro.md Add Run a Node guide (#3681) 2022-11-28 10:05:43 +00:00
key-management.md Add validator-manager (#3502) 2023-08-08 00:03:22 +00:00
key-recovery.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
late-block-re-orgs.md Make re-org strat more cautious and add more config (#4151) 2023-04-13 07:05:01 +00:00
lighthouse-ui.md Feat: lighthouse book - ui authentication (#4232) 2023-05-01 02:15:57 +00:00
mainnet-validator.md Update links in Lighthouse Book (#4279) 2023-05-10 00:33:11 +00:00
merge-migration.md feat: add chiado (#4530) 2023-08-29 05:56:30 +00:00
partial-withdrawal.md Minor revision in Lighthouse book (#4385) 2023-06-13 13:12:56 +00:00
pi.md upgrade to libp2p 0.52 (#4431) 2023-08-02 00:59:34 +00:00
redundancy.md Update Lighthouse Book API and Advanced Usage section (#4300) 2023-06-02 03:17:36 +00:00
run_a_node.md feat: add chiado (#4530) 2023-08-29 05:56:30 +00:00
setup.md Add make lint to development environment section in Book (#4866) 2023-10-20 06:23:29 +00:00
slasher.md Switch default slasher backend to LMDB (#4360) 2023-06-07 01:50:33 +00:00
slashing-protection.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
suggested-fee-recipient.md Update Lighthouse Book API and Advanced Usage section (#4300) 2023-06-02 03:17:36 +00:00
SUMMARY.md Add Experimental QUIC support (#4577) 2023-09-15 03:07:24 +00:00
ui-authentication.md Feat: lighthouse book - ui authentication (#4232) 2023-05-01 02:15:57 +00:00
ui-configuration.md Feat: siren faq update (#4685) 2023-09-06 04:37:04 +00:00
ui-faqs.md Feat: siren faq update (#4685) 2023-09-06 04:37:04 +00:00
ui-installation.md Siren Ui Lighthouse Version Requirments (#4093) 2023-03-16 08:03:43 +00:00
ui-usage.md feat: added new info about logs and config features (#4378) 2023-06-07 01:50:35 +00:00
validator-doppelganger.md Update doppelganger note about sync committee contributions (#4425) 2023-08-07 00:46:29 +00:00
validator-inclusion.md Revise doc API section (#4798) 2023-10-06 04:34:47 +00:00
validator-management.md Add validator-manager (#3502) 2023-08-08 00:03:22 +00:00
validator-manager-create.md Minor revision to Lighthouse Book on validator-manager (#4638) 2023-09-06 04:37:02 +00:00
validator-manager-move.md Minor revision to Lighthouse Book on validator-manager (#4638) 2023-09-06 04:37:02 +00:00
validator-manager.md Add validator-manager (#3502) 2023-08-08 00:03:22 +00:00
validator-monitoring.md Update Lighthouse book Sec 3-6 and FAQ (#4221) 2023-05-05 00:51:56 +00:00
validator-web3signer.md Update Lighthouse Book API and Advanced Usage section (#4300) 2023-06-02 03:17:36 +00:00
voluntary-exit.md Correct table formatting in Lighthouse book (#4407) 2023-06-16 06:44:32 +00:00