diff --git a/dev/dev-features.sh b/dev/dev-features.sh index 67514eb..9fd7dcc 100644 --- a/dev/dev-features.sh +++ b/dev/dev-features.sh @@ -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 diff --git a/dev/dev-scenarios.nix b/dev/dev-scenarios.nix index 9091e65..37b1744 100644 --- a/dev/dev-scenarios.nix +++ b/dev/dev-scenarios.nix @@ -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; + }; }