bitcoind: remove upper limit of option dbcache

The upper limit has been removed.
See item `The maximum allowed value...` at
https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-29.0.md#updated-settings
This commit is contained in:
Erik Arvstedt 2025-05-22 15:04:37 +02:00
parent 52809afbf4
commit c65cfdcbec
No known key found for this signature in database
GPG key ID: 33312B944DD97846

View file

@ -205,7 +205,7 @@ let
'';
};
dbCache = mkOption {
type = types.nullOr (types.ints.between 4 16384);
type = types.nullOr (intAtLeast 4);
default = null;
example = 4000;
description = "Override the default database cache size in MiB.";
@ -350,6 +350,11 @@ let
'';
zmqServerEnabled = (cfg.zmqpubrawblock != null) || (cfg.zmqpubrawtx != null);
intAtLeast = n: types.addCheck types.int (x: x >= n) // {
name = "intAtLeast";
description = "integer >= ${toString n}";
};
in {
inherit options;