Browse Source

support Reth v2.1.0

The MMGen Project 1 week ago
parent
commit
8583e1f5a2
4 changed files with 18 additions and 6 deletions
  1. 1 1
      mmgen/data/release_date
  2. 1 1
      mmgen/data/version
  3. 1 1
      mmgen/proto/eth/daemon.py
  4. 15 3
      nix/reth.nix

+ 1 - 1
mmgen/data/release_date

@@ -1 +1 @@
-March 2026
+April 2026

+ 1 - 1
mmgen/data/version

@@ -1 +1 @@
-16.1.dev34
+16.1.dev35

+ 1 - 1
mmgen/proto/eth/daemon.py

@@ -130,7 +130,7 @@ class geth_daemon(ethereum_daemon):
 		)
 		)
 
 
 class reth_daemon(geth_daemon):
 class reth_daemon(geth_daemon):
-	daemon_data = _dd('Reth', 1011002, '1.11.2')
+	daemon_data = _dd('Reth', 2001000, '2.1.0')
 	version_pat = r'reth/v(\d+)\.(\d+)\.(\d+)'
 	version_pat = r'reth/v(\d+)\.(\d+)\.(\d+)'
 	exec_fn = 'reth'
 	exec_fn = 'reth'
 	version_info_arg = '--version'
 	version_info_arg = '--version'

+ 15 - 3
nix/reth.nix

@@ -1,11 +1,23 @@
 {
 {
     lib,
     lib,
-    pkgs,
 }:
 }:
 
 
+let
+    # cargo and rustc packages from 25.11 are out of date,
+    # so fetch them from a more recent commit:
+    pinnedPkgs = fetchGit {
+        url = "https://github.com/NixOS/nixpkgs.git";
+        # url = /path/to/repo/nixpkgs-116266.git;
+        rev = "116266f52682e7b975426c66204b3dada19be502";
+        shallow = true;
+    };
+    pkgs = import pinnedPkgs {};
+
+in
+
 pkgs.rustPlatform.buildRustPackage rec {
 pkgs.rustPlatform.buildRustPackage rec {
     pname = "reth";
     pname = "reth";
-    version = "1.11.2";
+    version = "2.1.0";
 
 
     src = fetchGit {
     src = fetchGit {
         url = "https://github.com/paradigmxyz/reth";
         url = "https://github.com/paradigmxyz/reth";
@@ -14,7 +26,7 @@ pkgs.rustPlatform.buildRustPackage rec {
         shallow = true;
         shallow = true;
     };
     };
 
 
-    cargoHash = "sha256-IzqAIgfC9Y9atYxkFhaK09QwTMnrtMtU4MnG9AChwCQ=";
+    cargoHash = "sha256-//UOHtknfhq33bA3/xzwS0K9FPbn4Tkwx3kkNuluoAM=";
 
 
     doCheck = false;
     doCheck = false;
     doInstallCheck = false;
     doInstallCheck = false;