mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-11 05:20:07 +00:00
3486d6a809
## Issue Addressed Closes #1823 ## Proposed Changes * Use OS-level file locking for validator keystores, eliminating problems with lockfiles lingering after ungraceful shutdowns (`SIGKILL`, power outage). I'm using the `fs2` crate because it's cross-platform (unlike `file-lock`), and it seems to have the most downloads on crates.io. * Deprecate + disable `--delete-lockfiles` CLI param, it's no longer necessary * Delete the `validator_dir::Manager`, as it was mostly dead code and was only used in the `validator list` command, which has been rewritten to read the validator definitions YAML instead. ## Additional Info Tested on: - [x] Linux - [x] macOS - [x] Docker Linux - [x] Docker macOS - [ ] Windows
21 lines
601 B
Rust
21 lines
601 B
Rust
//! Provides:
|
|
//!
|
|
//! - `ValidatorDir`: manages a directory containing validator keypairs, deposit info and other
|
|
//! things.
|
|
//!
|
|
//! This crate is intended to be used by the account manager to create validators and the validator
|
|
//! client to load those validators.
|
|
|
|
mod builder;
|
|
pub mod insecure_keys;
|
|
mod validator_dir;
|
|
|
|
pub use crate::validator_dir::{
|
|
unlock_keypair_from_password_path, Error, Eth1DepositData, ValidatorDir,
|
|
ETH1_DEPOSIT_TX_HASH_FILE,
|
|
};
|
|
pub use builder::{
|
|
Builder, Error as BuilderError, ETH1_DEPOSIT_DATA_FILE, VOTING_KEYSTORE_FILE,
|
|
WITHDRAWAL_KEYSTORE_FILE,
|
|
};
|