fix test persistentContainerExample

This test requires `electrs` to be enabled.

Also, by using `electrs` instead of `clightning` we avoid the bug
where clightning hangs at startup when internet access is unavailable.
Due to technical limititations, internet access is available in NixOS
containers only after the container has started.
This commit is contained in:
Erik Arvstedt 2025-01-22 20:41:52 +01:00
parent b36867c845
commit b8f6343ee4
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 3 additions and 3 deletions

View file

@ -61,7 +61,7 @@
# Enable some services.
# See ../configuration.nix for all available features.
services.bitcoind.enable = true;
services.clightning.enable = true;
services.electrs.enable = true;
};
};
};

View file

@ -21,8 +21,8 @@ nix run . -- create --start
# Run command in container
extra-container run mynode -- hostname
extra-container run mynode -- systemctl status bitcoind
extra-container run mynode -- lightning-cli getinfo
extra-container run mynode -- bash -c 'bitcoin-cli -getinfo && lightning-cli getinfo'
extra-container run mynode -- bitcoin-cli -getinfo
extra-container run mynode -- bash -c 'bitcoin-cli -getinfo && systemctl status electrs'
# Start shell in container
extra-container root-login mynode