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}";
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
# Custom packages
|
||||
nodeinfo = (import ../pkgs/nodeinfo.nix) { inherit pkgs; };
|
||||
banlist = (import ../pkgs/banlist.nix) { inherit pkgs; };
|
||||
lightning-charge = import ../pkgs/lightning-charge.nix { inherit pkgs; };
|
||||
nanopos = import ../pkgs/nanopos.nix { inherit pkgs; };
|
||||
spark-wallet = import ../pkgs/spark-wallet.nix { inherit pkgs; };
|
||||
|
|
@ -24,6 +25,7 @@ in {
|
|||
|
||||
# Add custom packages
|
||||
inherit nodeinfo;
|
||||
inherit banlist;
|
||||
inherit lightning-charge;
|
||||
inherit nanopos;
|
||||
inherit spark-wallet;
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ let
|
|||
bitcoin
|
||||
clightning
|
||||
nodeinfo
|
||||
banlist
|
||||
jq
|
||||
];
|
||||
allPackages = with pkgs; [
|
||||
|
|
@ -177,3 +178,4 @@ in {
|
|||
environment.systemPackages = if (cfg.modules == "all") then (minimalPackages ++ allPackages) else minimalPackages;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue