add status for ton_daemon

This commit is contained in:
user committed 2025-03-13 20:14:40 +03:00
1 parent b63f663bd2
commit 54bc545090
2 files changed
+4 -1

No files matched your search

+3
View File
@@ -127,6 +127,7 @@ async def main_fn(memory):
with db_session() as session:
# Проверка отправленных сообщений
await send_status("ton_daemon", f"working: processing in-txs (seqno={sw_seqno_value})")
async def process_incoming_transaction(transaction: dict):
transaction_hash = transaction['transaction_id']['hash']
transaction_lt = str(transaction['transaction_id']['lt'])
@@ -174,6 +175,7 @@ async def main_fn(memory):
except BaseException as e:
make_log("TON_Daemon", f"Error while getting service wallet transactions: {e}", level="ERROR")
await send_status("ton_daemon", f"working: processing out-txs (seqno={sw_seqno_value})")
# Отправка подписанных сообщений
for blockchain_task in (
session.query(BlockchainTask).filter(
@@ -213,6 +215,7 @@ async def main_fn(memory):
await asyncio.sleep(0.5)
await send_status("ton_daemon", f"working: creating new messages (seqno={sw_seqno_value})")
# Создание новых подписей
for blockchain_task in (
session.query(BlockchainTask).filter(BlockchainTask.status == 'wait').all()