bitcoind: bump rpcthread count

This commit is contained in:
nixbitcoin 2020-08-04 14:12:20 +00:00
parent 46e15ee9cc
commit e650df30d5
No known key found for this signature in database
GPG Key ID: DD11F9AD5308B3BA
2 changed files with 9 additions and 1 deletions

View File

@ -27,6 +27,7 @@ let
${lib.concatMapStrings (node: "addnode=${node}\n") cfg.addnodes}
# RPC server options
${optionalString (cfg.rpcthreads != null) "rpcthreads=${toString cfg.rpcthreads}"}
rpcport=${toString cfg.rpc.port}
rpcwhitelistdefault=0
${concatMapStringsSep "\n"
@ -66,7 +67,6 @@ in {
default = "";
example = ''
par=16
rpcthreads=16
logips=1
'';
description = "Additional configurations to be appended to <filename>bitcoin.conf</filename>.";
@ -140,6 +140,11 @@ in {
'';
};
};
rpcthreads = mkOption {
type = types.nullOr types.ints.u16;
default = null;
description = "Set the number of threads to service RPC calls";
};
rpcbind = mkOption {
type = types.listOf types.str;
default = [ "127.0.0.1" ];

View File

@ -73,6 +73,9 @@ in {
discover = false;
addresstype = "bech32";
dbCache = 1000;
# higher rpcthread count due to reports that lightning implementations fail
# under high bitcoind rpc load
rpcthreads = 16;
rpc.users.privileged = {
name = "bitcoinrpc";
# Placeholder to be sed'd out by bitcoind preStart