subsystem-summary-of-catchup
Catchup Subsystem — Technical Summary
The catchup subsystem in stellar-core is responsible for synchronizing a node's local ledger state with the rest of the network when it falls behind. It downloads historical data (ledger headers, transactions, and bucket snapshots) from history archives, verifies integrity, and applies the data to bring the node up to date.
All files reside in src/catchup/.
Key Classes and Data Structures
CatchupConfiguration
File: CatchupConfiguration.h/.cpp
Immutable configuration describing a catchup request. Parameterized by:
toLedger— destination ledger number (orCURRENT = 0to resolve at runtime from the archive).count— number of ledgers to replay before the destination.0= minimal (buckets only),UINT32_MAX= complete history.Mode— one ofOFFLINE_BASIC,OFFLINE_COMPLETE, orONLINE.
Key methods:
More from stellar/stellar-core
running-tests
running tests at various levels from smoke tests to full suite to randomized tests
1subsystem-summary-of-test
read this skill for a token-efficient summary of the test subsystem
1subsystem-summary-of-scp
read this skill for a token-efficient summary of the scp subsystem
1running-make-to-build
how to run make correctly to get a good build, and otherwise understand the build system
1subsystem-summary-of-history
read this skill for a token-efficient summary of the history subsystem
1subsystem-summary-of-invariant
read this skill for a token-efficient summary of the invariant subsystem
1