From 42f4a59797f9bf363356e617eda2c37f97b278ea Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 5 Feb 2025 23:27:10 +1100 Subject: [PATCH] feat: Add index status to webserver --- main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index eb358f0..538598d 100644 --- a/main.py +++ b/main.py @@ -300,7 +300,10 @@ app = Flask(__name__) @app.route("/") def ping(): - return jsonify({"status": "OK"}) + return jsonify({"status": "OK", + "height": getNodeHeight(), + "indexed": getNewestBlock() + }) def run_server(): app.run(host='0.0.0.0', port=3000)