mempool: add module
This commit is contained in:
@@ -78,6 +78,9 @@ let
|
||||
echo a > rtl-password
|
||||
'');
|
||||
|
||||
tests.mempool = cfg.mempool.enable;
|
||||
services.mempool.electrumServer = "fulcrum";
|
||||
|
||||
tests.lnd = cfg.lnd.enable;
|
||||
services.lnd = {
|
||||
port = 9736;
|
||||
@@ -195,6 +198,7 @@ let
|
||||
services.lightning-loop.enable = true;
|
||||
services.lightning-pool.enable = true;
|
||||
services.charge-lnd.enable = true;
|
||||
services.mempool.enable = true;
|
||||
services.electrs.enable = true;
|
||||
services.fulcrum.enable = true;
|
||||
services.liquidd.enable = true;
|
||||
@@ -219,6 +223,8 @@ let
|
||||
tests.secure-node = true;
|
||||
tests.restart-bitcoind = true;
|
||||
|
||||
nix-bitcoin.onionServices.mempool-frontend.enable = true;
|
||||
|
||||
# Stop electrs from spamming the test log with 'WARN - wait until IBD is over' messages
|
||||
tests.stop-electrs = true;
|
||||
};
|
||||
@@ -237,6 +243,7 @@ let
|
||||
services.clightning-rest.enable = true;
|
||||
services.liquidd.enable = true;
|
||||
services.rtl.enable = true;
|
||||
services.mempool.enable = true;
|
||||
services.lnd.enable = true;
|
||||
services.lightning-loop.enable = true;
|
||||
services.lightning-pool.enable = true;
|
||||
|
||||
@@ -251,6 +251,15 @@ def _():
|
||||
log_has_string("clightning-rest", "cl-rest api server is ready and listening")
|
||||
)
|
||||
|
||||
@test("mempool")
|
||||
def _():
|
||||
assert_running("mempool")
|
||||
assert_running("nginx")
|
||||
machine.wait_until_succeeds(
|
||||
log_has_string("mempool", "Mempool Server is running on port 8999")
|
||||
)
|
||||
assert_matches(f"curl -L {ip('nginx')}:60845", "mempool - Bitcoin Explorer")
|
||||
|
||||
@test("joinmarket")
|
||||
def _():
|
||||
assert_running("joinmarket")
|
||||
@@ -427,6 +436,12 @@ def _():
|
||||
if enabled("btcpayserver"):
|
||||
machine.wait_until_succeeds(log_has_string("nbxplorer", f"At height: {num_blocks}"))
|
||||
|
||||
if enabled("mempool"):
|
||||
assert_running("nginx")
|
||||
assert_full_match(
|
||||
f"curl -fsS http://{ip('nginx')}:60845/api/v1/blocks/tip/height", str(num_blocks)
|
||||
)
|
||||
|
||||
@test("trustedcoin")
|
||||
def _():
|
||||
def expect_clightning_log(str):
|
||||
|
||||
Reference in New Issue
Block a user