bitcoind: bump rpcthread count
This commit is contained in:
parent
46e15ee9cc
commit
e650df30d5
@ -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" ];
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user