feat: version information/bump

This commit is contained in:
17ms 2024-07-15 20:54:40 +03:00
parent 15eed24abb
commit 50efda3324
Signed by untrusted user who does not match committer: ae
GPG Key ID: 995EFD5C1B532B3E
2 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,7 @@ from collections import namedtuple
import aioprocessing import aioprocessing
from dotenv import load_dotenv 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.mempool import WebSocketThread, QueueProcessor
from src.db import Handler, periodic_export 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.basicConfig(format="%(asctime)s %(levelname)s: %(message)s", level=log_level)
logging.info("Logger initialized") logging.info("Logger initialized")
logging.info("Currently running version %s", VERSION)
logging.info("MODE: %s", cfg.mode) logging.info("MODE: %s", cfg.mode)
logging.info("EXPORT_INTERVAL: %d (seconds)", cfg.export_interval) logging.info("EXPORT_INTERVAL: %d (seconds)", cfg.export_interval)
logging.info("IS_EXPORT: %r", cfg.is_export) logging.info("IS_EXPORT: %r", cfg.is_export)

View File

@ -1,5 +1,7 @@
import json import json
VERSION = "v1.1.0"
# Blockchain.com endpoint and the subscription message which initializes the "transaction stream" # Blockchain.com endpoint and the subscription message which initializes the "transaction stream"
WS_ADDR = "wss://ws.blockchain.info/coins" 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) # Optionally `confirmed_transaction` can be used (bursts of data instead of a steady stream, which is worse for the overall performance)