mirror of
https://github.com/luxfi/graph.git
synced 2026-09-24 00:26:07 +00:00
v1.2.42
A swap written by an older build holds its block NUMBER where a time belongs. healSwapTimes exists to date those rows, and it asked for them with RecentSwapsRaw — the newest rows by timestamp. A block number is small beside a unix second. So every row needing repair sorts behind every row already correct, and once a full window of dated rows existed the heal saw nothing stale, reported success, and stopped. On the Lux C-Chain that is 435,444 swaps across seventeen pools indexed and dated to 1970, sorting below everything on every newest-first list the exchange draws: the token page showed no trades for LETH, LBTC, LSOL, LTON, LPOL, LBNB and the rest while their trades sat in the store the whole time. Rows are now asked for by the property that identifies them, and the heal repeats while a pass is still dating rows rather than stopping after one window. The test builds the production shape — one undated row under a full window of dated ones — and fails against the old read, which dates nothing and calls it success. Co-authored-by: Hanzo Dev <[email protected]>
Description
Single-binary GraphQL query layer for Lux blockchain — replaces The Graph's Graph Node
27 MiB
Languages
Go
99.9%
Dockerfile
0.1%