Add warnings for deposits (#1858)

## Issue Addressed

NA

## Proposed Changes

Add some warnings to discourage users to user Lighthouse for mainnet.

## Additional Info

NA
This commit is contained in:
Paul Hauner
2020-11-04 19:46:42 +00:00
parent 7e7fad5734
commit 157e31027a
6 changed files with 34 additions and 4 deletions

View File

@@ -25,6 +25,8 @@ pub const STORE_WITHDRAW_FLAG: &str = "store-withdrawal-keystore";
pub const COUNT_FLAG: &str = "count";
pub const AT_MOST_FLAG: &str = "at-most";
pub const WALLET_PASSWORD_PROMPT: &str = "Enter your wallet's password:";
pub const MAINNET_WARNING: &str = "These are *not* mainnet validators! Submitting a mainnet \
deposit for this validator will result in lost ETH.";
pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
App::new(CMD)
@@ -229,6 +231,8 @@ pub fn cli_run<T: EthSpec>(
.map_err(|e| format!("Unable to build validator directory: {:?}", e))?;
println!("{}/{}\t{}", i + 1, n, voting_pubkey.to_hex_string());
println!("{}", MAINNET_WARNING);
}
Ok(())