Commit Graph

18 Commits

Author SHA1 Message Date
Christian Kamm 3cdbeddf8e Update solana version to 1.8.5 2021-11-19 11:59:59 +01:00
Christian Kamm e34ee0489c Update solana version to 1.8.3 2021-11-19 11:57:47 +01:00
Christian Kamm dde006243b Minor clippy fixes 2021-11-15 15:37:29 +01:00
Christian Kamm 71071d9b52 Add example plugin config file 2021-11-09 14:52:05 +01:00
Christian Kamm 95da45f597 Remove stale TODO comments 2021-11-08 11:44:37 +01:00
Christian Kamm 3088e8b071 Fix warnings and plugin shutdown 2021-11-07 11:32:57 +01:00
Christian Kamm bdd0e49ca8 Allow adding custom account tables 2021-11-03 18:56:40 +01:00
Christian Kamm d7b696a071 Fix postgres failure modes
- reconnect on fail
- critical error if postgres target can't be reached for long
- retry failing postgres actions a limited number of times
- exit if postgres connection seems gone for long or retries exhausted
- use async_channel instead of crossbeam_channel - needs to be async
2021-11-03 13:35:49 +01:00
Christian Kamm d8015daea6 Split connector into more files 2021-11-02 13:37:43 +01:00
Christian Kamm ce3f9e8a29 Postgres: Use a single query to update uncle status 2021-11-02 13:37:43 +01:00
Christian Kamm 83cbc7e673 Split connector into multiple files 2021-11-02 13:37:39 +01:00
Christian Kamm 132f6bcf38 cargo fmt 2021-11-02 13:37:08 +01:00
Christian Kamm 8fe4795733 plugin: remove unused dependencies 2021-11-02 13:37:08 +01:00
Christian Kamm f3fdb58810 plugin cleanup
- new and changed json config
- shorten main type name to "Plugin"
- move all plugin data into a helper struct, because construction and
  initialization is separate
2021-11-02 13:37:08 +01:00
Christian Kamm eab62d0599 gRPC: send regular ping
The idea was that slot updates would be really frequent and serve as a
ping. But during node startup there can be a long phase of no data.
2021-11-02 13:37:08 +01:00
Christian Kamm 6bb288e6b1 Create tokio runtime for the plugin 2021-11-02 13:37:08 +01:00
Christian Kamm 67f60beab1 Exit early when receiver stream closes 2021-11-02 13:37:08 +01:00
Christian Kamm 11ba681f9c Initial import from separate projects 2021-11-02 13:37:03 +01:00