Historical blocks

You need to source RocksDB ledger copies from those epochs to gather the raw data for historical blocks. These are available from the following sources:

  • Solana Foundation (public, Google Storage)

    • gs://mainnet-beta-ledger-us-ny5

    • gs://mainnet-beta-ledger-europe-fr2

    • gs://mainnet-beta-ledger-asia-sg1

  • Triton One (private)

    • For access, contact Triton One.

Once you have downloaded the RocksDB ledger archives, you can run the Radiance tool to generate a car file for an epoch. Ensure you have all the slots available in the RocksDB ledger archive for the epoch. You may need to download multiple ledger snapshots to have a full set of slots available. Once you know you have a RocksDB dataset that covers all the slots for the epoch, run the radiance tool like follows:

radiance car create2 107 --db=46223992/rocksdb --out=/storage/car/epoch-107.car

This will produce a car file called epoch-107.car containing all the blocks and transactions for that epoch. To specify multiple ledger snapshots, you can provide the db command line parameter multiple times --db=12312/rocksdb --db=52321/rocksdb. The radiance tooling will automatically stitch the RocksDB ledger archives together to form a full epoch car file.

Check mode

You can check if your current ledger has the slots you require to generate the epoch-107.car by adding the following flag:

--check

This will ensure that the radiance car create2 command will walk through and check that it has all the slots.

Shred revisions (epoch <= 32)

The shred format changed around epoch 32.

Add the following flag for epochs up to 32

--shred-revision=1

When generating epoch 32 itself, you need to provide the following flags:

--shred-revision=1 --next-shred-revision-activation-slot=10367766

Note: Depending on what snapshots you use to generate this CAR file, this shred revision transition may occur on epoch 22.

Epoch 208

While generating the OF1 archive, Triton One could not find a ledger file covering approximately 495 slots during Epoch 208. Since the ledger data was missing, Triton worked with Anza Labs to recreate a ledger for these 495 slots to build an Old Faithful CAR file for this epoch.

The gap exists between slots 89856108 and 89856602 (inclusive).

For generating Epoch 208, you should, therefore, add this ledger copy as a CLI argument to radiance:

--db epoch-208-rocksdb/

For more information about generating your own version of this ledger and validating that it is correct, see the Epoch 208 page under Validation.

Last updated