summary refs log tree commit diff
diff options
context:
space:
mode:
authorIceman <iceman@satisfiesvalues.org>2021-08-02 14:35:41 -0400
committerIceman <iceman@satisfiesvalues.org>2021-08-03 09:13:02 -0400
commit090f33f788749b9d2a9105ff17d6e1e5ff36019b (patch)
treeaf1548f13da0e47df86c75a3bbc9ba1026e8b8b3
parent0d0a612f404ec5ce1bb0bec081812417563fb4eb (diff)
downloadnixpkgs-090f33f788749b9d2a9105ff17d6e1e5ff36019b.tar
nixpkgs-090f33f788749b9d2a9105ff17d6e1e5ff36019b.tar.gz
nixpkgs-090f33f788749b9d2a9105ff17d6e1e5ff36019b.tar.bz2
nixpkgs-090f33f788749b9d2a9105ff17d6e1e5ff36019b.tar.lz
nixpkgs-090f33f788749b9d2a9105ff17d6e1e5ff36019b.tar.xz
nixpkgs-090f33f788749b9d2a9105ff17d6e1e5ff36019b.tar.zst
nixpkgs-090f33f788749b9d2a9105ff17d6e1e5ff36019b.zip
nixos/geth: Change default to snap sync
Starting in v1.10.4, go-ethereum changed the default sync mode to snap
sync. This adds "snap" as one of valid types of syncmode and updates
`services.geth.syncmode` to use it by default instead of the previous
fast sync.
-rw-r--r--nixos/modules/services/blockchain/ethereum/geth.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/blockchain/ethereum/geth.nix b/nixos/modules/services/blockchain/ethereum/geth.nix
index be3f40f6bd8..6c2df95886e 100644
--- a/nixos/modules/services/blockchain/ethereum/geth.nix
+++ b/nixos/modules/services/blockchain/ethereum/geth.nix
@@ -83,8 +83,8 @@ let
       };
 
       syncmode = mkOption {
-        type = types.enum [ "fast" "full" "light" ];
-        default = "fast";
+        type = types.enum [ "snap" "fast" "full" "light" ];
+        default = "snap";
         description = "Blockchain sync mode.";
       };