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.
This commit is contained in:
Iceman 2021-08-02 14:35:41 -04:00
parent 0d0a612f40
commit 090f33f788

View File

@ -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.";
};