This commit is contained in:
Doctor Delpy committed 2025-12-12 01:29:40 +03:00
1 parent 1def6e3512
commit dd4ff8b8ff
2 files changed
+19 -1

No files matched your search

+14
View File
@@ -311,6 +311,19 @@ async def s_api_v1_admin_overview(request):
node_id = b58encode(hot_pubkey).decode()
highload_address: Optional[str] = None
try:
from tonsdk.contract.wallet import Wallets
highload_wallet = Wallets.ALL['hv3'](
private_key=service_wallet.options['private_key'],
public_key=service_wallet.options['public_key'],
wc=0,
)
highload_address = highload_wallet.address.to_string(1, 1, 1)
except Exception as exc: # pragma: no cover
make_log("Admin", f"Failed to compute highload wallet address: {exc}", level="error")
overview_payload = {
'project': {
'host': PROJECT_HOST,
@@ -325,6 +338,7 @@ async def s_api_v1_admin_overview(request):
'id': node_id,
'service_wallet': service_wallet.address.to_string(1, 1, 1),
'ton_master': platform.address.to_string(1, 1, 1),
'highload_wallet': highload_address,
},
'runtime': {
'python': py_platform.python_version(),