Fix #1964: remove mainnet warnings which no longer apply (#1970)

## Issue Addressed

#1964

## Proposed Changes

* remove two mainnet warnings
* reword `testnet` in logmessage
* update test
This commit is contained in:
SjonHortensius
2020-11-25 23:56:21 +00:00
parent 198c4a873d
commit 50558e61f7
3 changed files with 4 additions and 19 deletions

View File

@@ -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();

View File

@@ -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<_>>();