From 50efda3324fe11e2d10571a28761e676eeb41871 Mon Sep 17 00:00:00 2001 From: 17ms Date: Mon, 15 Jul 2024 20:54:40 +0300 Subject: [PATCH] feat: version information/bump --- main.py | 3 ++- src/const.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 52d1e29..9a5ec69 100755 --- a/main.py +++ b/main.py @@ -9,7 +9,7 @@ from collections import namedtuple import aioprocessing from dotenv import load_dotenv -from src.const import DEFAULT_MODE, DEFAULT_EXPORT_INTERVAL, DEFAULT_IS_EXPORT +from src.const import DEFAULT_MODE, DEFAULT_EXPORT_INTERVAL, DEFAULT_IS_EXPORT, VERSION from src.mempool import WebSocketThread, QueueProcessor from src.db import Handler, periodic_export @@ -60,6 +60,7 @@ def main(): logging.basicConfig(format="%(asctime)s %(levelname)s: %(message)s", level=log_level) logging.info("Logger initialized") + logging.info("Currently running version %s", VERSION) logging.info("MODE: %s", cfg.mode) logging.info("EXPORT_INTERVAL: %d (seconds)", cfg.export_interval) logging.info("IS_EXPORT: %r", cfg.is_export) diff --git a/src/const.py b/src/const.py index 90561f1..6a9cd65 100644 --- a/src/const.py +++ b/src/const.py @@ -1,5 +1,7 @@ import json +VERSION = "v1.1.0" + # Blockchain.com endpoint and the subscription message which initializes the "transaction stream" WS_ADDR = "wss://ws.blockchain.info/coins" # Optionally `confirmed_transaction` can be used (bursts of data instead of a steady stream, which is worse for the overall performance)