Commit Graph

33 Commits

Author SHA1 Message Date
Christian Kamm 333d75aa05 Bump to v0.2.1, update changelog 2022-07-21 16:08:16 +02:00
Christian Kamm 70bb284425 Update dependencies 2022-07-21 16:06:02 +02:00
Christian Kamm e3e9547ef8 ChainData: Fix returning stale data
1. Only the CreatedBank message contains the parent and often that was
   not the first message received. That confused the data structure,
   because it then considered a chain of slots alive that had only a
   single slot in it.
   Fixed by tracking as "best_chain" only the top slot that actually has
   a parent set.
2. OptimisticallyConfirm messages sometimes arrive before CreateBank,
   which would change the slot status from Confirmed back to Processed.
   Nothing dependend on confirmed vs processed, but it's been fixed
   anyway by making slot status only increase confirmation status.
3. Accept account writes for slots newer than the current best_chain
   head as alive.
2022-07-21 16:02:35 +02:00
Christian Kamm 6e34afcc91 Mention supported target in readme #1 2022-07-20 22:47:39 +02:00
Christian Kamm 74e20a1c25 Update README for #2 2022-07-20 22:17:58 +02:00
Christian Kamm 49af303166 Bump to v0.2.0, add changelog 2022-04-25 09:32:45 +02:00
Christian Kamm 1e660667ed Improve snapshotting: avoid gPA for Serum OpenOrders
Instead send getMultipleAccounts for the accounts that are actually
needed.
2022-04-25 09:24:05 +02:00
Christian Kamm 24bb725759 Add metrics about queue lengths 2022-04-25 08:25:42 +02:00
Christian Kamm 4749daf49b Use jemalloc
This improved the memory footprint in tests when the service is running
for a long time.
2022-04-25 08:22:45 +02:00
Christian Kamm 484ab24dbf Expand readme 2022-02-22 12:41:01 +01:00
Christian Kamm a58868cd92 Fix mango-v3 dependency now that code is merged 2022-02-07 21:44:00 +01:00
Christian Kamm e3688358bf Documentation 2022-02-05 11:20:12 +01:00
Christian Kamm 0f68a8e261 Add mango devnet example config 2022-02-04 20:50:36 +01:00
Christian Kamm b371f782a7 Update dep, fix invalid mango data type 2022-02-04 16:44:44 +01:00
Christian Kamm 0fcc22854e Better naming
Speak about "candidate" accounts instead of "liquidatable" accounts, now
that accounts can become liquidation candidates before their health is
negative.
2022-02-04 12:34:31 +01:00
Christian Kamm 343f18938c Early notification of low health 2022-02-03 16:32:53 +01:00
Christian Kamm ceef69513d Send a message every time an account is judged liquidatable 2022-01-17 12:35:27 +01:00
Christian Kamm 0d7e0b0b4b Move health related code to separate file 2022-01-17 12:26:41 +01:00
Christian Kamm 99bd9136f0 Speed up and improve error reporting of health check 2022-01-17 12:18:15 +01:00
Christian Kamm af89b4732c Track all mango accounts in snapshot 2022-01-17 11:29:37 +01:00
Christian Kamm 3c216560a6 Send startLiquidatable and stopLiquidatable messages 2022-01-17 10:12:49 +01:00
Christian Kamm 20257590b6 Docs 2022-01-17 09:48:42 +01:00
Christian Kamm 304a5e965d More messaging to websocket clients 2022-01-16 21:23:39 +01:00
Christian Kamm 4612dfb940 First steps to communicating to liquidator with websockets 2022-01-16 18:08:58 +01:00
Christian Kamm 49f1bf1a34 Move data management to separate file 2022-01-12 16:40:37 +01:00
Christian Kamm 39e2fef9e3 Use Init health type on being_liquidated 2022-01-12 16:32:01 +01:00
Christian Kamm 716db3c139 Add metrics to chaindata 2022-01-12 16:31:46 +01:00
Christian Kamm 7d155c07ad Enable TLS support 2022-01-11 20:00:50 +01:00
Christian Kamm da3d7d79de Fix startup, reduce logging 2022-01-11 14:28:44 +01:00
Christian Kamm beaf256266 Check all accounts for health every MangoCache update 2022-01-11 12:10:42 +01:00
Christian Kamm 01346000e4 Get account snapshots regularly 2022-01-11 11:40:29 +01:00
Christian Kamm 8d9f722821 Loading accounts and basic health check 2022-01-10 16:06:11 +01:00
Christian Kamm 943f5f29eb Initial commit 2022-01-08 20:03:20 +01:00