Merge fort-nix/nix-bitcoin#418: update nixpkgs
b3e868d0aftests/regtest: disable incompatible `validatepegin` for liquidd (Erik Arvstedt)c30fe1919bnetns-isolation: don't auto-assign IPv6 addrs to peer links (Erik Arvstedt)6584540828makeShell: make help message extensible (Erik Arvstedt)0478354477versioning: move variable (Erik Arvstedt)8616254d63bitcoind-rpc-public-whitelist: remove waitfornewblock (Erik Arvstedt)083e141e3etests/btcpayserver: test bitcoind P2P connection in regtest (Erik Arvstedt)82c92df162tests/regtest: fix restarting bitcoind (Erik Arvstedt)49086abcc5liquidd: use systemd startup notification (Erik Arvstedt)b83fd845c2update nixpkgs (nixbitcoin)852c112603Use HTTPS URL for spark-wallet GitHub node packages (nixbitcoin) Pull request description: ACKs for top commit: erikarvstedt: ACKb3e868d0afjonasnick: utACKb3e868d0afTree-SHA512: 300410157a54f90f40abda064ed9b8f2310e3002bd2eac0527404d5402cd7d87c2d2d1d79d68cf1569841645c333b281d706607deae9461e1ef07f6c20427297
This commit is contained in:
commit
3f844c06f0
10 changed files with 63 additions and 33 deletions
|
|
@ -25,7 +25,6 @@
|
|||
"gettxoutsetinfo"
|
||||
"scantxoutset"
|
||||
"verifytxoutproof"
|
||||
"waitfornewblock"
|
||||
# Mining
|
||||
"getblocktemplate"
|
||||
"getmininginfo"
|
||||
|
|
|
|||
|
|
@ -159,10 +159,10 @@ in {
|
|||
lbtcnodeendpoint=${nbLib.addressWithPort liquidd.address liquidd.whitelistedPort}
|
||||
''}
|
||||
'';
|
||||
in {
|
||||
in rec {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
requires = [ "bitcoind.service" ];
|
||||
after = [ "bitcoind.service" ];
|
||||
requires = [ "bitcoind.service" ] ++ optional cfg.btcpayserver.lbtc "liquidd.service";
|
||||
after = requires;
|
||||
preStart = ''
|
||||
install -m 600 ${configFile} '${cfg.nbxplorer.dataDir}/settings.config'
|
||||
{
|
||||
|
|
|
|||
|
|
@ -168,6 +168,11 @@ let
|
|||
bitcoind = config.services.bitcoind;
|
||||
|
||||
configFile = pkgs.writeText "elements.conf" ''
|
||||
# We're already logging via journald
|
||||
nodebuglogfile=1
|
||||
|
||||
startupnotify=/run/current-system/systemd/bin/systemd-notify --ready
|
||||
|
||||
chain=${bitcoind.makeNetworkName "liquidv1" ''
|
||||
regtest
|
||||
[regtest]'' # Add [regtest] config section
|
||||
|
|
@ -229,6 +234,12 @@ in {
|
|||
inherit options;
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [
|
||||
{ assertion = bitcoind.regtest -> cfg.validatepegin != true;
|
||||
message = "liquidd: `validatepegin` is incompatible with regtest.";
|
||||
}
|
||||
];
|
||||
|
||||
services.bitcoind.enable = true;
|
||||
|
||||
environment.systemPackages = [
|
||||
|
|
@ -253,7 +264,8 @@ in {
|
|||
} >> '${cfg.dataDir}/elements.conf'
|
||||
'';
|
||||
serviceConfig = nbLib.defaultHardening // {
|
||||
Type = "simple";
|
||||
Type = "notify";
|
||||
NotifyAccess = "all";
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
ExecStart = "${nbPkgs.elementsd}/bin/elementsd -datadir='${cfg.dataDir}'";
|
||||
|
|
|
|||
|
|
@ -173,6 +173,8 @@ in {
|
|||
${ip} link add ${veth} type veth peer name ${peer}
|
||||
${ip} link set ${veth} netns ${netnsName}
|
||||
${ipNetns} addr add ${v.address}/24 dev ${veth}
|
||||
# The peer link is never used directly, so don't auto-assign an IPv6 address
|
||||
echo 1 > /proc/sys/net/ipv6/conf/${peer}/disable_ipv6
|
||||
${ip} link set ${peer} up
|
||||
${ipNetns} link set ${veth} up
|
||||
${ip} link set ${peer} master nb-br
|
||||
|
|
|
|||
|
|
@ -22,8 +22,6 @@ let
|
|||
};
|
||||
};
|
||||
|
||||
version = config.nix-bitcoin.configVersion;
|
||||
|
||||
# Sorted by increasing version numbers
|
||||
changes = [
|
||||
{
|
||||
|
|
@ -197,6 +195,8 @@ let
|
|||
'';
|
||||
};
|
||||
|
||||
version = config.nix-bitcoin.configVersion;
|
||||
|
||||
incompatibleChanges = optionals
|
||||
(version != null && versionOlder lastChange)
|
||||
(builtins.filter (change: versionOlder change && (change.condition or true)) changes);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue