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:
parent
7e7fad5734
commit
157e31027a
10
README.md
10
README.md
@ -15,6 +15,10 @@ An open-source Ethereum 2.0 client, written in Rust and maintained by Sigma Prim
|
|||||||
|
|
||||||
![Banner](https://i.postimg.cc/hjdTGKPd/photo-2020-10-23-09-52-16.jpg)
|
![Banner](https://i.postimg.cc/hjdTGKPd/photo-2020-10-23-09-52-16.jpg)
|
||||||
|
|
||||||
|
**🚨🚨🚨 Note: Lighthouse is not *yet* ready to produce mainnet deposits. The developers will require some
|
||||||
|
time to test against the mainnet deposit contract, once it is released. DO NOT SUBMIT VALIDATOR
|
||||||
|
DEPOSITS WITH LIGHTHOUSE. 🚨🚨🚨**
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
Lighthouse is:
|
Lighthouse is:
|
||||||
@ -30,6 +34,12 @@ Lighthouse is:
|
|||||||
|
|
||||||
Like all Ethereum 2.0 clients, Lighthouse is a work-in-progress.
|
Like all Ethereum 2.0 clients, Lighthouse is a work-in-progress.
|
||||||
|
|
||||||
|
## Eth2 Deposit Contract
|
||||||
|
|
||||||
|
The Lighthouse team acknowledges
|
||||||
|
[`0x00000000219ab540356cBB839Cbe05303d7705Fa`](https://etherscan.io/address/0x00000000219ab540356cbb839cbe05303d7705fa)
|
||||||
|
as the canonical Eth2 deposit contract address.
|
||||||
|
|
||||||
## Development Status
|
## Development Status
|
||||||
|
|
||||||
Current development overview:
|
Current development overview:
|
||||||
|
@ -25,6 +25,8 @@ pub const STORE_WITHDRAW_FLAG: &str = "store-withdrawal-keystore";
|
|||||||
pub const COUNT_FLAG: &str = "count";
|
pub const COUNT_FLAG: &str = "count";
|
||||||
pub const AT_MOST_FLAG: &str = "at-most";
|
pub const AT_MOST_FLAG: &str = "at-most";
|
||||||
pub const WALLET_PASSWORD_PROMPT: &str = "Enter your wallet's password:";
|
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> {
|
pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
|
||||||
App::new(CMD)
|
App::new(CMD)
|
||||||
@ -229,6 +231,8 @@ pub fn cli_run<T: EthSpec>(
|
|||||||
.map_err(|e| format!("Unable to build validator directory: {:?}", e))?;
|
.map_err(|e| format!("Unable to build validator directory: {:?}", e))?;
|
||||||
|
|
||||||
println!("{}/{}\t{}", i + 1, n, voting_pubkey.to_hex_string());
|
println!("{}/{}\t{}", i + 1, n, voting_pubkey.to_hex_string());
|
||||||
|
|
||||||
|
println!("{}", MAINNET_WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -13,6 +13,10 @@ clients to form a resilient and decentralized proof-of-stake blockchain.
|
|||||||
We implement the specification as defined in the
|
We implement the specification as defined in the
|
||||||
[ethereum/eth2.0-specs](https://github.com/ethereum/eth2.0-specs) repository.
|
[ethereum/eth2.0-specs](https://github.com/ethereum/eth2.0-specs) repository.
|
||||||
|
|
||||||
|
**🚨🚨🚨 Note: Lighthouse is not *yet* ready to produce mainnet deposits. The developers will require some
|
||||||
|
time to test against the mainnet deposit contract, once it is released. DO NOT SUBMIT VALIDATOR
|
||||||
|
DEPOSITS WITH LIGHTHOUSE. 🚨🚨🚨**
|
||||||
|
|
||||||
## Topics
|
## Topics
|
||||||
|
|
||||||
You may read this book from start to finish, or jump to some of these topics:
|
You may read this book from start to finish, or jump to some of these topics:
|
||||||
|
@ -3,6 +3,10 @@
|
|||||||
Joining an Eth2 testnet is a great way to get familiar with staking in Phase 0.
|
Joining an Eth2 testnet is a great way to get familiar with staking in Phase 0.
|
||||||
All users should experiment with a testnet prior to staking mainnet ETH.
|
All users should experiment with a testnet prior to staking mainnet ETH.
|
||||||
|
|
||||||
|
**🚨🚨🚨 Note: Lighthouse is not *yet* ready to produce mainnet deposits. The developers will require some
|
||||||
|
time to test against the mainnet deposit contract, once it is released. DO NOT SUBMIT VALIDATOR
|
||||||
|
DEPOSITS WITH LIGHTHOUSE. 🚨🚨🚨**
|
||||||
|
|
||||||
## Supported Testnets
|
## Supported Testnets
|
||||||
|
|
||||||
Lighthouse supports four testnets:
|
Lighthouse supports four testnets:
|
||||||
|
@ -1,5 +1,9 @@
|
|||||||
# Create a validator
|
# Create a validator
|
||||||
|
|
||||||
|
**🚨🚨🚨 Note: Lighthouse is not *yet* ready to produce mainnet deposits. The developers will require some
|
||||||
|
time to test against the mainnet deposit contract, once it is released. DO NOT SUBMIT VALIDATOR
|
||||||
|
DEPOSITS WITH LIGHTHOUSE. 🚨🚨🚨**
|
||||||
|
|
||||||
Validators are fundamentally represented by a BLS keypair. In Lighthouse, we
|
Validators are fundamentally represented by a BLS keypair. In Lighthouse, we
|
||||||
use a [wallet](./wallet-create.md) to generate these keypairs. Once a wallet
|
use a [wallet](./wallet-create.md) to generate these keypairs. Once a wallet
|
||||||
exists, the `lighthouse account validator create` command is used to generate
|
exists, the `lighthouse account validator create` command is used to generate
|
||||||
|
@ -283,10 +283,14 @@ impl TestValidator {
|
|||||||
|
|
||||||
let pubkeys = stdout[..stdout.len() - 1]
|
let pubkeys = stdout[..stdout.len() - 1]
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.map(|line| {
|
.filter_map(|line| {
|
||||||
|
if line.starts_with(MAINNET_WARNING) {
|
||||||
|
None
|
||||||
|
} else {
|
||||||
let tab = line.find("\t").expect("line must have tab");
|
let tab = line.find("\t").expect("line must have tab");
|
||||||
let (_, pubkey) = line.split_at(tab + 1);
|
let (_, pubkey) = line.split_at(tab + 1);
|
||||||
pubkey.to_string()
|
Some(pubkey.to_string())
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.collect::<Vec<_>>();
|
.collect::<Vec<_>>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user