lighthouse/.github/workflows
Michael Sproul 92d597ad23 Modularise slasher backend (#3443)
## Proposed Changes

Enable multiple database backends for the slasher, either MDBX (default) or LMDB. The backend can be selected using `--slasher-backend={lmdb,mdbx}`.

## Additional Info

In order to abstract over the two library's different handling of database lifetimes I've used `Box::leak` to give the `Environment` type a `'static` lifetime. This was the only way I could think of using 100% safe code to construct a self-referential struct `SlasherDB`, where the `OpenDatabases` refers to the `Environment`. I think this is OK, as the `Environment` is expected to live for the life of the program, and both database engines leave the database in a consistent state after each write. The memory claimed for memory-mapping will be freed by the OS and appropriately flushed regardless of whether the `Environment` is actually dropped.

We are depending on two `sigp` forks of `libmdbx-rs` and `lmdb-rs`, to give us greater control over MDBX OS support and LMDB's version.
2022-08-15 01:30:56 +00:00
..
book.yml Update mdbook runner to Ubuntu 20.04 (#3138) 2022-04-04 06:08:26 +00:00
cancel-previous-runs.yml Fix short sha in github actions (#2210) 2021-02-18 06:18:47 +00:00
docker-antithesis.yml Antithesis docker workflow (#2877) 2022-01-12 20:58:41 +00:00
docker.yml Optimized Docker images (#2966) 2022-01-31 22:55:03 +00:00
linkcheck.yml Linkcheck fix (#3452) 2022-08-11 10:08:36 +00:00
local-testnet.yml Builder Specs v0.2.0 (#3134) 2022-07-30 00:22:37 +00:00
publish-crate.yml Implement SSZ union type (#2579) 2021-09-25 05:58:36 +00:00
release.yml Use windows-2019 in release CI (#3090) 2022-03-15 03:21:11 +00:00
test-suite.yml Modularise slasher backend (#3443) 2022-08-15 01:30:56 +00:00