Skip to content

Commit 698cf4a

Browse files
authored
feat(reth): add reth execution client (#332)
* feat(reth): add reth execution client * chore(reth): update to v0.1.0-alpha.7 * reth: 0.1.0-alpha.7 -> 0.1.0-alpha.8 Diff: paradigmxyz/reth@v0.1.0-alpha.7...v0.1.0-alpha.8 * chore(reth): update to v0.1.0-alpha.10 * chore: try to use allowBuiltinFetchGit * chore(reth): update reth to 0.1.0-alpha.11 * fix: broken build to test ci * docs: add reth to docs * reth: 0.1.0-alpha.11 -> 0.1.0-alpha.13 Diff: paradigmxyz/reth@v0.1.0-alpha.11...v0.1.0-alpha.13
1 parent 387d64d commit 698cf4a

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

docs/apps.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ The execution client (also known as the Execution Engine, EL client or formerly
5252
| | `nix run .#geth-rlpdump` |
5353
| [Nethermind](https://nethermind.io/) @span | `nix run .#nethermind-runner` |
5454
| | `nix run .#nethermind` |
55+
| [Reth](https://github.com/paradigmxyz/reth) | `nix run .#reth` |
5556

5657
::end-spantable::
5758

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
clang,
3+
lib,
4+
llvmPackages,
5+
fetchFromGitHub,
6+
rustPlatform,
7+
}:
8+
rustPlatform.buildRustPackage rec {
9+
pname = "reth";
10+
version = "0.1.0-alpha.13";
11+
12+
src = fetchFromGitHub {
13+
owner = "paradigmxyz";
14+
repo = pname;
15+
rev = "v${version}";
16+
hash = "sha256-RE40KzOCjPCCTTepZ630BlLDeXc7KITb2MDBjU6ij2M=";
17+
};
18+
19+
cargoHash = "";
20+
cargoLock = {
21+
lockFile = "${src}/Cargo.lock";
22+
outputHashes = {
23+
"discv5-0.3.1" = "sha256-Z/Yl/K6UKmXQ4e0anAJZffV9PmWdBg/ROnNBrB8dABE=";
24+
"igd-0.12.0" = "sha256-wjk/VIddbuoNFljasH5zsHa2JWiOuSW4VlcUS+ed5YY=";
25+
"revm-3.5.0" = "sha256-odaNHGw7RfJHJInQ/zRQYBev4vsJeyx6pGERgOSD/24=";
26+
};
27+
};
28+
29+
nativeBuildInputs = [clang rustPlatform.bindgenHook];
30+
31+
checkFlags = [
32+
"--skip=cli::tests::override_trusted_setup_file"
33+
];
34+
35+
# Needed by libmdx
36+
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
37+
38+
meta = {
39+
description = "Modular, contributor-friendly and blazing-fast implementation of the Ethereum protocol, in Rust";
40+
homepage = "https://github.com/paradigmxyz/reth";
41+
license = [lib.licenses.mit lib.licenses.asl20];
42+
mainProgram = "reth";
43+
platforms = ["x86_64-linux"];
44+
};
45+
}

packages/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
geth = callPackage ./clients/execution/geth {};
2828
geth-sealer = callPackage ./clients/execution/geth-sealer {};
2929
nethermind = callPackage ./clients/execution/nethermind {};
30+
reth = callPackageUnstable ./clients/execution/reth {};
3031

3132
# Signers
3233
web3signer = callPackage ./signers/web3signer {};
@@ -102,6 +103,7 @@
102103
# execution clients
103104
besu.bin = "besu";
104105
erigon.bin = "erigon";
106+
reth.bin = "reth";
105107

106108
geth = {
107109
bin = "geth";

0 commit comments

Comments
 (0)