Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

services/horizon: Remove legacy ingest database backend #5162

Merged
merged 6 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions ingest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,17 @@ From a high level, the ingestion library is broken down into a few modular compo

[ Ledger Backend ]
|
one of...
|
--------|-----+------|----------|
| | | |
Captive Database Remote etc.
Core Captive
Core
Captive
Core
```

This is described in a little more detail in [`doc.go`](./doc.go), its accompanying examples, the documentation within this package, and the rest of this tutorial.



# Hello, World!
As is tradition, we'll start with a simplistic example that ingests a single ledger from the network. We're immediately faced with a decision, though: _What's the backend?_ We'll use a **Captive Stellar-Core backend** in this example because it requires (little-to-)no setup, but there are couple of alternatives available. You could also use:

- a **database** (via `NewDatabaseBackend()`), which would ingest ledgers stored in a Stellar-Core database, or

- a **remote Captive Core** instance (via `NewRemoteCaptive()`), which works much like Captive Core, but points to an instance that isn't (necessarily) running locally.

With that in mind, here's a minimalist example of the ingestion library:
As is tradition, we'll start with a simplistic example that ingests a single ledger from the network. We'll use the **Captive Stellar-Core backend** to ingest the ledger:

```go
package main
Expand Down
271 changes: 0 additions & 271 deletions ingest/ledgerbackend/database_backend.go

This file was deleted.

70 changes: 0 additions & 70 deletions ingest/ledgerbackend/hash_order_test.go

This file was deleted.

Loading
Loading