mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
Add explicit fails for 32bit architecture
This commit is contained in:
@@ -357,6 +357,14 @@ fn main() {
|
|||||||
|
|
||||||
let log = slog::Logger::root(drain.fuse(), o!());
|
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!(
|
warn!(
|
||||||
log,
|
log,
|
||||||
"Ethereum 2.0 is pre-release. This software is experimental."
|
"Ethereum 2.0 is pre-release. This software is experimental."
|
||||||
|
|||||||
@@ -157,6 +157,14 @@ fn main() {
|
|||||||
|
|
||||||
let mut log = slog::Logger::root(drain.fuse(), o!());
|
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) {
|
let (client_config, eth2_config) = match get_configs(&matches, &mut log) {
|
||||||
Ok(tuple) => tuple,
|
Ok(tuple) => tuple,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user