Commit graph

8 commits

Author SHA1 Message Date
Jakob Notland
acfed56475 Remove oracle_cash quickfix introduced Apr 24 2026
Deletes all oracle_cash infrastructure: the background poller
(oracle_cash.rs), DB layer (db/oracle/oracle_cash.rs), RPC endpoints
(cash/closest, cash/history), table init, and all wiring in main.rs.

usd_per_bch_at_or_before is simplified to a single get_closest(&None, ts)
call now that Delphi v2 data is indexed in the same delphi_entry table.
Returns anyhow::Result<Decimal> and errors instead of silently returning
zero when no oracle price is available. Callers updated with ?.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-09 13:09:46 +02:00
jakobsn
f56cc16d93 using oracles cash feed 2026-04-24 05:19:43 +00:00
Dagur Valberg Johannsson
c7eb5bcc36 Added support for indexing Moria contracts 2026-03-30 23:52:29 +02:00
Dagur Valberg Johannsson
f421327a5d
Switch to tokio and sqlx
This makes the application fully async; freeing web server threads to
handle new connections when waiting on SQL queries.

Additionally sqlx will allow easier move to a different database if
needed in the future.

Includes some SQL optimizations as well (slow queries more easliy identifiable
with sqlx).
2026-02-18 10:16:51 +01:00
Dagur Valberg Johannsson
bac43bbb98
Make DB read pool size configurable 2026-02-10 14:49:28 +01:00
Dagur Valberg Johannsson
d6fa922154
Reduce file descriptor usage
Misc changes to reduce file descriptor usage for the indexer.
2026-02-04 08:53:27 +01:00
Dagur Valberg Johannsson
d85bc2c9db
Update copyright headers 2026-01-21 12:37:13 +01:00
Dagur Valberg Johannsson
a6c6159eba
Add Chipnet support 2026-01-09 13:46:58 +01:00