mempool: add module

This commit is contained in:
Erik Arvstedt
2023-08-06 21:07:51 +02:00
parent f0bf94cc5a
commit 1de259485b
13 changed files with 435 additions and 7 deletions

View File

@@ -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):