From 73d6d1e8cab384f2f2eff7f13e621aba6324f669 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Mon, 15 Jan 2024 23:04:29 +0100 Subject: [PATCH] dev: move mempool to `dev-features.sh` The mempool dev cmd docs are too short for a dedicated file. --- dev/dev-features.sh | 24 ++++++++++++++++++++++++ dev/topics/mempool.sh | 22 ---------------------- 2 files changed, 24 insertions(+), 22 deletions(-) delete mode 100644 dev/topics/mempool.sh diff --git a/dev/dev-features.sh b/dev/dev-features.sh index 9fd7dcc..38daff2 100644 --- a/dev/dev-features.sh +++ b/dev/dev-features.sh @@ -288,6 +288,30 @@ c journalctl -u clightning -f # This should show log msgs like # plugin-trustedcoin returning block 801409, 0000000000000000000482ddc4…, 1483968 bytes +#――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― +# mempool +run-tests.sh -s mempool-regtest container + +c systemctl status mempool +c systemctl status mysql +c nodeinfo + +# Check backend +c curl -fsS localhost:8999/api/v1/blocks/1 | jq +c curl -fsS localhost:8999/api/v1/blocks/tip/height | jq +c curl -fsS localhost:8999/api/v1/address/1CGG9qVq2P6F7fo6sZExvNq99Jv2GDpaLE | jq + +# Check frontend +c curl -fsS localhost:60845 +c curl -fsS localhost:60845/api/mempool | jq +c curl -fsS localhost:60845/api/blocks/1 | jq +c curl -fsS localhost:60845/api/v1/blocks/1 | jq +c curl -fsS localhost:60845/api/blocks/tip/height | jq + +# Open frontend +# shellcheck disable=SC2154 +runuser -u "$(logname)" -- xdg-open "http://$ip:60845/" + #――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # rtl # see ./topics/rtl.sh diff --git a/dev/topics/mempool.sh b/dev/topics/mempool.sh deleted file mode 100644 index fb4f4fb..0000000 --- a/dev/topics/mempool.sh +++ /dev/null @@ -1,22 +0,0 @@ -# Start mempool container -run-tests.sh -s mempool-regtest container - -c systemctl status mempool -c systemctl status mysql -c nodeinfo - -# Check backend -c curl -fsS localhost:8999/api/v1/blocks/1 | jq -c curl -fsS localhost:8999/api/v1/blocks/tip/height | jq -c curl -fsS localhost:8999/api/v1/address/1CGG9qVq2P6F7fo6sZExvNq99Jv2GDpaLE | jq - -# Check frontend -c curl -fsS localhost:60845 -c curl -fsS localhost:60845/api/mempool | jq -c curl -fsS localhost:60845/api/blocks/1 | jq -c curl -fsS localhost:60845/api/v1/blocks/1 | jq -c curl -fsS localhost:60845/api/blocks/tip/height | jq - -# Open frontend -# shellcheck disable=SC2154 -runuser -u "$(logname)" -- xdg-open "http://$ip:60845/"