Lantern is a lightweight command-line application designed to track Ethereum's Proof of Stake consensus entirely through a peer-to-peer network.
Before you can build and run Lantern.Beacon.Cli
, ensure that you have the following installed on your system:
-
.NET SDK (version 8.0)
The project is built using .NET, so you will need the .NET SDK installed. You can download it from the official .NET website.To verify that .NET is installed, run the following command:
dotnet --version
-
Git
Git is required to clone the repository. You can download Git from the official Git website.To verify that Git is installed, run the following command:
git --version
To build this project from source, follow these detailed steps:
-
Ensure Prerequisites are Met
Install the required dependencies:- Download and install .NET SDK (version 8.0 or higher).
- Install Git to manage the repository.
-
Clone the Repository
Start by cloning the repository into a local directory:git clone https://github.com/Pier-Two/Lantern.git --recursive
-
Navigate to Source Directory
Navigate into the root directory of the project:cd Lantern.Beacon.Cli
-
Build the Project
You can use the .NET CLI to restore dependencies and build the project:dotnet restore dotnet build
-
Run the Application
Once the build completes successfully, you can run the CLI using the following command:cd src/Lantern.Beacon.Cli dotnet run -- <your-cli-arguments>
Replace
<your-cli-arguments>
with the desired options for running the client (e.g.--network mainnet
, etc.).
To run the CLI, you need to provide several required arguments such as the network and a recent block root from the Beacon chain. Below is an example of how to run the client for the Ethereum mainnet:
dotnet run -- --network mainnet --block-root 0xb170fd52257200a0bc86f896ee9b688e9022f93e70810aa90e779a7bc1683a7f
You can find pre-built releases of Lantern.Beacon.Cli
on the Releases page. Each release is tagged and includes a changelog describing the updates, bug fixes, and new features included.
We welcome contributions to Lantern.Beacon.Cli
! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a feature branch (
git checkout -b your-feature-name
). - Commit your changes (
git commit -m 'Add a new feature'
). - Push the branch (
git push origin your-feature-name
). - Create a pull request on the main repository.
Lantern.Beacon.Cli
is licensed under the MIT License. See the LICENSE file for more details.
This is an early version of Lantern.Beacon.Cli
. While it is functional, there may still be bugs, missing features, or incomplete documentation. We are actively working on improving the tool, and we welcome feedback and contributions from the community to help make it better.