fix: switch to confirmed -> pending txs to level the instream

This commit is contained in:
17ms 2024-07-14 18:57:59 +03:00
parent 59fb0d3a2a
commit ba2140b11f
Signed by untrusted user who does not match committer: ae
GPG Key ID: 995EFD5C1B532B3E

View File

@ -3,8 +3,10 @@ import json
DEFAULT_MODE = "production" DEFAULT_MODE = "production"
WS_ADDR = "wss://ws.blockchain.info/coins" WS_ADDR = "wss://ws.blockchain.info/coins"
SUB_MSG = json.dumps({"coin": "eth", "command": "subscribe", "entity": "confirmed_transaction"}) # Optionally `confirmed_transaction` can be used (bursts of data instead of a steady stream, which is worse for the overall performance)
SUB_MSG = json.dumps({"coin": "eth", "command": "subscribe", "entity": "pending_transaction"})
WS_RECONNECT_PAUSE = 2 # Seconds WS_RECONNECT_PAUSE = 2 # Seconds
WS_INTERMSG_TIMEOUT = 1 # Seconds
DEFAULT_EXPORT_PATH = "./data/export.json" DEFAULT_EXPORT_PATH = "./data/export.json"
DEFAULT_EXPORT_INTERVAL = 10800 # 3 hours DEFAULT_EXPORT_INTERVAL = 10800 # 3 hours