41e7a07c51
## Proposed Changes Add a `lighthouse db` command with three initial subcommands: - `lighthouse db version`: print the database schema version. - `lighthouse db migrate --to N`: manually upgrade (or downgrade!) the database to a different version. - `lighthouse db inspect --column C`: log the key and size in bytes of every value in a given `DBColumn`. This PR lays the groundwork for other changes, namely: - Mark's fast-deposit sync (https://github.com/sigp/lighthouse/pull/2915), for which I think we should implement a database downgrade (from v9 to v8). - My `tree-states` work, which already implements a downgrade (v10 to v8). - Standalone purge commands like `lighthouse db purge-dht` per https://github.com/sigp/lighthouse/issues/2824. ## Additional Info I updated the `strum` crate to 0.24.0, which necessitated some changes in the network code to remove calls to deprecated methods. Thanks to @winksaville for the motivation, and implementation work that I used as a source of inspiration (https://github.com/sigp/lighthouse/pull/2685).
29 lines
794 B
TOML
29 lines
794 B
TOML
[package]
|
|
name = "store"
|
|
version = "0.2.0"
|
|
authors = ["Paul Hauner <paul@paulhauner.com>"]
|
|
edition = "2021"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3.1.0"
|
|
beacon_chain = {path = "../beacon_chain"}
|
|
|
|
[dependencies]
|
|
db-key = "0.0.5"
|
|
leveldb = { version = "0.8.6", default-features = false }
|
|
parking_lot = "0.11.0"
|
|
itertools = "0.10.0"
|
|
eth2_ssz = "0.4.1"
|
|
eth2_ssz_derive = "0.3.0"
|
|
types = { path = "../../consensus/types" }
|
|
state_processing = { path = "../../consensus/state_processing" }
|
|
slog = "2.5.2"
|
|
serde = "1.0.116"
|
|
serde_derive = "1.0.116"
|
|
lazy_static = "1.4.0"
|
|
lighthouse_metrics = { path = "../../common/lighthouse_metrics" }
|
|
lru = "0.7.1"
|
|
sloggers = { version = "2.1.1", features = ["json"] }
|
|
directory = { path = "../../common/directory" }
|
|
strum = { version = "0.24.0", features = ["derive"] }
|