mango-v4/liquidator/src
Christian Kamm 7c4d052979 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 12:33:03 +02:00
..
account_shared_data.rs Mc/liquidator (#64) 2022-06-18 16:31:28 +02:00
chain_data.rs ChainData: Fix returning stale data 2022-07-21 12:33:03 +02:00
chain_data_fetcher.rs Liq: use clap+dotenv instead of toml config file 2022-07-19 11:35:59 +02:00
liquidate.rs Liq: Don't log common+expected simulation errors 2022-07-20 09:47:37 +02:00
main.rs Liq/Keeper: allow --dotenv=<file> arg 2022-07-19 14:57:25 +02:00
metrics.rs fix clippy warnings 2022-06-21 13:10:37 +02:00
snapshot_source.rs upgrade anchor to latest, upgrade solana dependencies to match what latest anchor uses 2022-07-20 15:51:10 +02:00
util.rs Mc/liquidator (#64) 2022-06-18 16:31:28 +02:00
websocket_source.rs upgrade anchor to latest, upgrade solana dependencies to match what latest anchor uses 2022-07-20 15:51:10 +02:00