mirror of
https://github.com/Such-Software/wowcheckout.git
synced 2026-11-23 11:04:45 +01:00
feat: port upstream system status, health monitoring, connectivity caching
Ports xmrcheckout upstream features (7 commits since 655d037): - SystemStatus model for reconciler heartbeat tracking - Monero connectivity caching in system status - Health status endpoints in routes - Hardened reconciler status updates with SQLAlchemyError handling - Status schema additions Adapted for Wownero: 3-decimal precision (0.001 WOW) in amount rounding.
This commit is contained in:
@@ -133,6 +133,20 @@ class User(Base):
|
||||
updated_at = Column(DateTime(timezone=True), server_default=func.now(), onupdate=func.now())
|
||||
|
||||
|
||||
class SystemStatus(Base):
|
||||
__tablename__ = "system_status"
|
||||
|
||||
name = Column(String, primary_key=True)
|
||||
last_reconcile_started_at = Column(DateTime(timezone=True), nullable=True)
|
||||
last_reconcile_completed_at = Column(DateTime(timezone=True), nullable=True)
|
||||
last_reconcile_error = Column(String, nullable=True)
|
||||
wallet_rpc = Column(String, nullable=True)
|
||||
daemon = Column(String, nullable=True)
|
||||
daemon_height = Column(Integer, nullable=True)
|
||||
checked_at = Column(DateTime(timezone=True), nullable=True)
|
||||
updated_at = Column(DateTime(timezone=True), server_default=func.now(), onupdate=func.now())
|
||||
|
||||
|
||||
class ProfileHistory(Base):
|
||||
__tablename__ = "profile_history"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user