Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Allow specifying alternative url for deposit_contract #2295

Closed
wants to merge 1 commit into from

Conversation

bachp
Copy link
Contributor

@bachp bachp commented Apr 5, 2021

Issue Addressed

None

Proposed Changes

Adds support for downloading the deposit contract from a different location
by setting the environement variables LIGHTHOUSE_DEPOSIT_CONTRACT_SPEC_URL
and LIGHTHOUSE_DEPOSIT_CONTRACT_TESTNET_URL.

It also adds support to fetch the content from a local file:// URL.

This allows pre fetching to build in an environment without network access.

Additional Info

Being able to build without network access is required to package the application for https://nixos.org/. But I imagine it might be useful for other distributions too.

Adds support for downloading the deposit contract from a different location
by setting the environement variables LIGHTHOUSE_DEPOSIT_CONTRACT_SPEC_URL
and LIGHTHOUSE_DEPOSIT_CONTRACT_TESTNET_URL.

It also adds support to fetch the content from a local file:// URL.

This allows pre fetching to build in an environment without network access.
@paulhauner paulhauner added enhancement New feature or request ready-for-review The code is ready for review labels Apr 5, 2021
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one! Thank you @bachp :)

bors r+

@paulhauner paulhauner added ready-for-merge This PR is ready to merge. and removed enhancement New feature or request ready-for-review The code is ready for review labels Apr 16, 2021
bors bot pushed a commit that referenced this pull request Apr 16, 2021
## Issue Addressed

None

## Proposed Changes

Adds support for downloading the deposit contract from a different location
by setting the environement variables `LIGHTHOUSE_DEPOSIT_CONTRACT_SPEC_URL`
and `LIGHTHOUSE_DEPOSIT_CONTRACT_TESTNET_URL`.

It also adds support to fetch the content from a local file:// URL.

This allows pre fetching to build in an environment without network access.

## Additional Info

Being able to build without network access is required to package the application for https://nixos.org/. But I imagine it might be useful for other distributions too.
@bors bors bot changed the title Allow specifying alternative url for deposit_contract [Merged by Bors] - Allow specifying alternative url for deposit_contract Apr 16, 2021
@bors bors bot closed this Apr 16, 2021
@bachp bachp deleted the custom-deposit-url branch April 16, 2021 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants