Add explicit fails for 32bit architecture

This commit is contained in:
Paul Hauner 2019-09-12 10:40:29 -04:00
parent 5d91d59481
commit 7c211f3791
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C
2 changed files with 16 additions and 0 deletions

View File

@ -357,6 +357,14 @@ fn main() {
let log = slog::Logger::root(drain.fuse(), o!());
if std::mem::size_of::<usize>() != 8 {
crit!(
log,
"Lighthouse only supports 64bit CPUs";
"detected" => format!("{}bit", std::mem::size_of::<usize>() * 8)
);
}
warn!(
log,
"Ethereum 2.0 is pre-release. This software is experimental."

View File

@ -157,6 +157,14 @@ fn main() {
let mut log = slog::Logger::root(drain.fuse(), o!());
if std::mem::size_of::<usize>() != 8 {
crit!(
log,
"Lighthouse only supports 64bit CPUs";
"detected" => format!("{}bit", std::mem::size_of::<usize>() * 8)
);
}
let (client_config, eth2_config) = match get_configs(&matches, &mut log) {
Ok(tuple) => tuple,
Err(e) => {