mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-03 01:37:39 +00:00
Allow setting web3signer version through environment (#3368)
## Issue Addressed #3369 ## Proposed Changes The goal is to make it possible to build Lighthouse without network access, so builds can be reproducible. This parallels the existing functionality in `common/deposit_contract/build.rs`, which allows specifying a filename through the environment to avoid downloading it. In this case, by specifying the version and making it available on the filesystem, the existing logic will avoid a network download.
This commit is contained in:
parent
f3439116da
commit
cf3bcca969
3
.gitignore
vendored
3
.gitignore
vendored
@ -9,3 +9,6 @@ perf.data*
|
|||||||
/bin
|
/bin
|
||||||
genesis.ssz
|
genesis.ssz
|
||||||
/clippy.toml
|
/clippy.toml
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
/*.iml
|
||||||
|
@ -29,6 +29,8 @@ pub async fn download_binary(dest_dir: PathBuf) {
|
|||||||
|
|
||||||
let version = if let Some(version) = FIXED_VERSION_STRING {
|
let version = if let Some(version) = FIXED_VERSION_STRING {
|
||||||
version.to_string()
|
version.to_string()
|
||||||
|
} else if let Ok(env_version) = env::var("LIGHTHOUSE_WEB3SIGNER_VERSION") {
|
||||||
|
env_version
|
||||||
} else {
|
} else {
|
||||||
// Get the latest release of the web3 signer repo.
|
// Get the latest release of the web3 signer repo.
|
||||||
let latest_response: Value = client
|
let latest_response: Value = client
|
||||||
|
Loading…
Reference in New Issue
Block a user