From bf2c9760418f4c51e205607119150ac2eb9ba5c7 Mon Sep 17 00:00:00 2001 From: urvisavla Date: Tue, 25 Jun 2024 11:58:31 -0700 Subject: [PATCH] Update DEVELOPER_GUIDE.md --- exp/services/ledgerexporter/DEVELOPER_GUIDE.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exp/services/ledgerexporter/DEVELOPER_GUIDE.md b/exp/services/ledgerexporter/DEVELOPER_GUIDE.md index 915229ae25..2f82152432 100644 --- a/exp/services/ledgerexporter/DEVELOPER_GUIDE.md +++ b/exp/services/ledgerexporter/DEVELOPER_GUIDE.md @@ -17,7 +17,9 @@ To achieve its goals, the ledger exporter uses the following architecture, which - Export manager to bundles and organizes the ledgers to get them ready for export - The cloud storage plugin writes to the cloud storage. This is specific to the type of cloud storage, GCS in this case. -[Insert Architecture diagram here] + +![ledgerexporter-architecture](https://github.com/urvisavla/go/assets/30014929/8fcc4733-6e35-4de7-ad06-0a27515364cd) + ## Data Format - Ledger exporter uses a compact and efficient data format called XDR (External Data Representation), which is a compact binary format. The captive-core emits data in this format and the data structure is referred to as `LedgerCloseMeta`. The exporter bundle multiple LedgerCloseMeta's into a single object using a custom XDR struct called LedgerCloseMetaBatch which is defined in [Stellar-exporter.x](https://github.com/stellar/go/blob/master/xdr/Stellar-exporter.x).