mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-30 19:23:50 +00:00
## Issue Addressed #1964 ## Proposed Changes * remove two mainnet warnings * reword `testnet` in logmessage * update test
This commit is contained in:
@@ -266,17 +266,10 @@ fn run<E: EthSpec>(
|
||||
info!(log, "Lighthouse started"; "version" => VERSION);
|
||||
info!(
|
||||
log,
|
||||
"Configured for testnet";
|
||||
"Configured for network";
|
||||
"name" => &testnet_name
|
||||
);
|
||||
|
||||
if testnet_name == "mainnet" {
|
||||
warn!(
|
||||
log,
|
||||
"The mainnet specification is being used. This not recommended (yet)."
|
||||
)
|
||||
}
|
||||
|
||||
match matches.subcommand() {
|
||||
("beacon_node", Some(matches)) => {
|
||||
let context = environment.core_context();
|
||||
|
||||
@@ -284,13 +284,9 @@ impl TestValidator {
|
||||
let pubkeys = stdout[..stdout.len() - 1]
|
||||
.split("\n")
|
||||
.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())
|
||||
}
|
||||
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