Skip to content

Retrieving historical ledgers over p2p

Elliot Lee edited this page Jan 4, 2024 · 1 revision

You can configure your rippled to attempt to store a particular ledger index (sequence). There are a few different ways.

For example, if you want Devnet ledger 3058257 and newer:

Option 1:

Set [ledger_history] in your config to be big enough such that the current network ledger index - that value < the target ledger index (3058257).

Option 2:

Enable online_delete and set advisory_delete=1. Then once rippled is running, call rippled can_delete <target ledger - 1>, e.g. rippled can_delete 3058256

Both of these solutions require that enough nodes on the network have history going back at least that far. rippled will attempt to backfill from peers.