fix: remove conflicting get_engine() function in database.py
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 8s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 9s
P2P Network Verification / p2p-verification (push) Successful in 8s
Python Tests / test-python (push) Successful in 23s
Security Scanning / security-scan (push) Successful in 1m19s
Integration Tests / test-service-integration (push) Failing after 12m6s

The old get_engine() function without parameters was overriding the new
chain-specific get_engine(chain_id) function, causing TypeError when
init_db() tried to call it with a positional argument.
This commit is contained in:
aitbc
2026-04-28 11:36:06 +02:00
parent c7c9f44800
commit 037a6204b5

View File

@@ -149,11 +149,6 @@ def init_db(chain_id: str = "") -> None:
except OSError:
pass
# Restricted engine access - only for internal use
def get_engine():
"""Get database engine (restricted access)"""
return _engine_internal
# Backward compatibility - expose engine for escrow routes (to be removed in Phase 1.3)
# TODO: Remove this in Phase 1.3 when escrow routes are updated
engine = _engine_internal