Add Greg Maxwell's banlist to bitcoind postStart
This commit is contained in:
parent
022ba88450
commit
fbc78ce6ed
5 changed files with 696 additions and 0 deletions
|
|
@ -196,6 +196,10 @@ in {
|
|||
chown '${cfg.user}:${cfg.group}' '${cfg.dataDir}/bitcoin.conf'
|
||||
echo "rpcpassword=$(cat /secrets/bitcoin-rpcpassword)" >> '${cfg.dataDir}/bitcoin.conf'
|
||||
'';
|
||||
postStart = ''
|
||||
until '${cfg.package}'/bin/bitcoin-cli -datadir='${cfg.dataDir}' getnetworkinfo; do sleep 1; done
|
||||
'${pkgs.banlist}'/bin/banlist ${pkgs.altcoins.bitcoind}
|
||||
'';
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "${cfg.user}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue