From 090f33f788749b9d2a9105ff17d6e1e5ff36019b Mon Sep 17 00:00:00 2001 From: Iceman Date: Mon, 2 Aug 2021 14:35:41 -0400 Subject: [PATCH] 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. --- nixos/modules/services/blockchain/ethereum/geth.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/services/blockchain/ethereum/geth.nix b/nixos/modules/services/blockchain/ethereum/geth.nix index be3f40f6bd86..6c2df95886e7 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."; };