Skip to content

Commit

Permalink
dev: add trustedcoin
Browse files Browse the repository at this point in the history
  • Loading branch information
erikarvstedt committed Aug 3, 2023
1 parent ac59f93 commit 4e83697
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dev/dev-features.sh
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,15 @@ c curl 127.0.0.1:62601
nix run --inputs-from . nixpkgs#lynx -- --dump $ip:62601
c curl -s 127.0.0.1:62601 | grep -i "orders found"

#―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
# trustedcoin
run-tests.sh -s trustedcoin-online container

c systemctl start clightning
c journalctl -u clightning -f
# This should show log msgs like
# plugin-trustedcoin returning block 801409, 0000000000000000000482ddc4…, 1483968 bytes

#―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――
# rtl
# see ./topics/rtl.sh
19 changes: 19 additions & 0 deletions dev/dev-scenarios.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,23 @@ with lib;
};
nix-bitcoin.nodeinfo.enable = true;
};

trustedcoin-online = {
services.clightning = {
enable = true;
tor.proxy = true;
plugins.trustedcoin.enable = true;
plugins.trustedcoin.tor.proxy = false;
};

# Don't run clightning on startup.
# This breaks the follwing dependency cycle:
# clightning
# -> network (trustedcoin fails and exits clightning without network access)
# -> multi-user.target (NixOS containers only gain network access after multi-user.target has completed)
# -> clightning
systemd.services.clightning.wantedBy = mkForce [];

test.container.enableWAN = true;
};
}

0 comments on commit 4e83697

Please sign in to comment.