Merge fort-nix/nix-bitcoin#783: bitcoind: remove upper limit of option dbcache
c65cfdcbecbitcoind: remove upper limit of option `dbcache` (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: ACKc65cfdcbecTree-SHA512: a29aa43684aa05ec703a0be78cc4fcf6687d84aabde257dcca3f9eb40d31a8a9d41a4f68ee433fbb19ff027bc9e129fcde850dcca411895ab735baa8e148e18b
This commit is contained in:
commit
e7e6353b3a
1 changed files with 6 additions and 1 deletions
|
|
@ -205,7 +205,7 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
dbCache = mkOption {
|
dbCache = mkOption {
|
||||||
type = types.nullOr (types.ints.between 4 16384);
|
type = types.nullOr (intAtLeast 4);
|
||||||
default = null;
|
default = null;
|
||||||
example = 4000;
|
example = 4000;
|
||||||
description = "Override the default database cache size in MiB.";
|
description = "Override the default database cache size in MiB.";
|
||||||
|
|
@ -350,6 +350,11 @@ let
|
||||||
'';
|
'';
|
||||||
|
|
||||||
zmqServerEnabled = (cfg.zmqpubrawblock != null) || (cfg.zmqpubrawtx != null);
|
zmqServerEnabled = (cfg.zmqpubrawblock != null) || (cfg.zmqpubrawtx != null);
|
||||||
|
|
||||||
|
intAtLeast = n: types.addCheck types.int (x: x >= n) // {
|
||||||
|
name = "intAtLeast";
|
||||||
|
description = "integer >= ${toString n}";
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
inherit options;
|
inherit options;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue