diff --git a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml
index eacdb902da14..68d09a778131 100644
--- a/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml
+++ b/nixos/doc/manual/from_md/release-notes/rl-2111.section.xml
@@ -182,6 +182,13 @@
from 1.0.4 to 3.0.1
+
+
+ The erigon ethereum node has moved to a new
+ database format in 2021-05-04, and requires
+ a full resync
+
+
services.geoip-updater was broken and has
diff --git a/nixos/doc/manual/release-notes/rl-2111.section.md b/nixos/doc/manual/release-notes/rl-2111.section.md
index 3a08df5b341d..d7c38056ef61 100644
--- a/nixos/doc/manual/release-notes/rl-2111.section.md
+++ b/nixos/doc/manual/release-notes/rl-2111.section.md
@@ -57,6 +57,8 @@ pt-services.clipcat.enable).
- The `staticjinja` package has been upgraded from 1.0.4 to 3.0.1
+- The `erigon` ethereum node has moved to a new database format in `2021-05-04`, and requires a full resync
+
- `services.geoip-updater` was broken and has been replaced by [services.geoipupdate](options.html#opt-services.geoipupdate.enable).
- PHP 7.3 is no longer supported due to upstream not supporting this version for the entire lifecycle of the 21.11 release.
diff --git a/pkgs/applications/blockchains/erigon.nix b/pkgs/applications/blockchains/erigon.nix
new file mode 100644
index 000000000000..0d6a395b05af
--- /dev/null
+++ b/pkgs/applications/blockchains/erigon.nix
@@ -0,0 +1,34 @@
+{ stdenv, lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+ pname = "erigon";
+ version = "2021.08.01";
+
+ src = fetchFromGitHub {
+ owner = "ledgerwatch";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "sha256-fjMkCCeQa/IHB4yXlL7Qi8J9wtZm90l3xIA72LeoW8M=";
+ };
+
+ vendorSha256 = "1vsgd19an592dblm9afasmh8cd0x2frw5pvnxkxd2fikhy2mibbs";
+ runVend = true;
+
+ # Build errors in mdbx when format hardening is enabled:
+ # cc1: error: '-Wformat-security' ignored without '-Wformat' [-Werror=format-security]
+ hardeningDisable = [ "format" ];
+
+ subPackages = [
+ "cmd/erigon"
+ "cmd/evm"
+ "cmd/rpcdaemon"
+ "cmd/rlpdump"
+ ];
+
+ meta = with lib; {
+ homepage = "https://github.com/ledgerwatch/erigon/";
+ description = "Ethereum node implementation focused on scalability and modularity";
+ license = with licenses; [ lgpl3Plus gpl3Plus ];
+ maintainers = with maintainers; [ d-xo ];
+ };
+}
diff --git a/pkgs/applications/blockchains/turbo-geth/default.nix b/pkgs/applications/blockchains/turbo-geth/default.nix
deleted file mode 100644
index 58c0b45337eb..000000000000
--- a/pkgs/applications/blockchains/turbo-geth/default.nix
+++ /dev/null
@@ -1,30 +0,0 @@
-{ lib, buildGoModule, fetchFromGitHub }:
-
-buildGoModule rec {
- pname = "turbo-geth";
- version = "2021.05.02";
-
- src = fetchFromGitHub {
- owner = "ledgerwatch";
- repo = pname;
- rev = "v${version}";
- sha256 = "sha256-7sTRAAlKZOdwi/LRbIEDKWpBe1ol8pZfEf2KIC4s0xk=";
- };
-
- vendorSha256 = "1d0ahdb2b5v8nxq3kdxw151phnyv6habb8kr8qjaq3kyhcnyk6ng";
- runVend = true;
-
- subPackages = [
- "cmd/tg"
- "cmd/evm"
- "cmd/rpcdaemon"
- "cmd/rlpdump"
- ];
-
- meta = with lib; {
- homepage = "https://github.com/ledgerwatch/turbo-geth/";
- description = "Ethereum node and geth fork focused on scalability and modularity";
- license = with licenses; [ lgpl3Plus gpl3Plus ];
- maintainers = with maintainers; [ d-xo ];
- };
-}
diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix
index e88c6978ad1f..54d112a31d95 100644
--- a/pkgs/top-level/aliases.nix
+++ b/pkgs/top-level/aliases.nix
@@ -876,6 +876,7 @@ mapAliases ({
truecrypt = veracrypt; # added 2018-10-24
tshark = wireshark-cli; # added 2018-04-25
tuijam = throw "tuijam has been removed because Google Play Music was discontinued"; # added 2021-03-07
+ turbo-geth = throw "turbo-geth has been renamed to erigon"; # added 20201-08-08
uberwriter = apostrophe; # added 2020-04-23
ubootBeagleboneBlack = ubootAmx335xEVM; # added 2020-01-21
ucsFonts = ucs-fonts; # added 2016-07-15
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a526ee45490f..ddb0afd26d31 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -28874,6 +28874,8 @@ with pkgs;
ergo = callPackage ../applications/blockchains/ergo { };
+ erigon = callPackage ../applications/blockchains/erigon.nix { };
+
exodus = callPackage ../applications/blockchains/exodus { };
faraday = callPackage ../applications/blockchains/faraday { };
@@ -28945,8 +28947,6 @@ with pkgs;
tessera = callPackage ../applications/blockchains/tessera { };
- turbo-geth = callPackage ../applications/blockchains/turbo-geth { };
-
vertcoin = libsForQt514.callPackage ../applications/blockchains/vertcoin {
boost = boost165;
withGui = true;