mirror of
https://github.com/sigp/lighthouse.git
synced 2026-06-30 19:34:37 +00:00
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:
@@ -283,10 +283,14 @@ impl TestValidator {
|
||||
|
||||
let pubkeys = stdout[..stdout.len() - 1]
|
||||
.split("\n")
|
||||
.map(|line| {
|
||||
let tab = line.find("\t").expect("line must have tab");
|
||||
let (_, pubkey) = line.split_at(tab + 1);
|
||||
pubkey.to_string()
|
||||
.filter_map(|line| {
|
||||
if line.starts_with(MAINNET_WARNING) {
|
||||
None
|
||||
} else {
|
||||
let tab = line.find("\t").expect("line must have tab");
|
||||
let (_, pubkey) = line.split_at(tab + 1);
|
||||
Some(pubkey.to_string())
|
||||
}
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user