bitcoind: add option `txindex`

This commit is contained in:
Erik Arvstedt 2021-11-26 15:13:38 +01:00
parent 10a744a598
commit 9e4f4d6b0f
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
1 changed files with 6 additions and 0 deletions

View File

@ -206,6 +206,11 @@ let
Value 0 disables pruning.
'';
};
txindex = mkOption {
type = types.bool;
default = false;
description = "Enable the transaction index.";
};
zmqpubrawblock = mkOption {
type = types.nullOr types.str;
default = null;
@ -284,6 +289,7 @@ let
''}
${optionalString (cfg.dbCache != null) "dbcache=${toString cfg.dbCache}"}
prune=${toString cfg.prune}
${optionalString cfg.txindex "txindex=1"}
${optionalString (cfg.sysperms != null) "sysperms=${if cfg.sysperms then "1" else "0"}"}
${optionalString (cfg.disablewallet != null) "disablewallet=${if cfg.disablewallet then "1" else "0"}"}
${optionalString (cfg.assumevalid != null) "assumevalid=${cfg.assumevalid}"}