docs: refactor workflow with script references and add mempool RPC endpoint
All checks were successful
Documentation Validation / validate-docs (push) Successful in 8s
Integration Tests / test-service-integration (push) Successful in 46s
Python Tests / test-python (push) Successful in 1m26s
Systemd Sync / sync-systemd (push) Successful in 3s
Security Scanning / security-scan (push) Successful in 1m36s
All checks were successful
Documentation Validation / validate-docs (push) Successful in 8s
Integration Tests / test-service-integration (push) Successful in 46s
Python Tests / test-python (push) Successful in 1m26s
Systemd Sync / sync-systemd (push) Successful in 3s
Security Scanning / security-scan (push) Successful in 1m36s
📋 Workflow Documentation:
• Replace inline service optimization with 15_service_optimization.sh reference
• Replace inline monitoring setup with 16_monitoring_setup.sh reference
• Replace inline security hardening with 17_security_hardening.sh reference
• Add production readiness validation with 18_production_readiness.sh
• Consolidate scaling and load balancing script references
• Remove duplicate integration
This commit is contained in:
@@ -900,6 +900,36 @@ async def get_transactions(chain_id: str = None, limit: int = 20, offset: int =
|
||||
}
|
||||
|
||||
|
||||
@router.get("/mempool", summary="Get mempool contents", tags=["mempool"])
|
||||
async def get_mempool_contents(chain_id: str = None, limit: int = 100):
|
||||
"""Get current mempool contents"""
|
||||
try:
|
||||
chain_id = get_chain_id(chain_id)
|
||||
metrics_registry.increment("rpc_mempool_total")
|
||||
|
||||
mempool = get_mempool()
|
||||
mempool_contents = mempool.get_pending_transactions(chain_id, limit)
|
||||
|
||||
return {
|
||||
"transactions": mempool_contents,
|
||||
"total": len(mempool_contents),
|
||||
"limit": limit,
|
||||
"chain_id": chain_id,
|
||||
"timestamp": datetime.now().isoformat()
|
||||
}
|
||||
|
||||
except Exception as e:
|
||||
metrics_registry.increment("rpc_mempool_errors_total")
|
||||
return {
|
||||
"transactions": [],
|
||||
"total": 0,
|
||||
"limit": limit,
|
||||
"chain_id": chain_id,
|
||||
"error": str(e),
|
||||
"timestamp": datetime.now().isoformat()
|
||||
}
|
||||
|
||||
|
||||
# MARKETPLACE ENDPOINTS
|
||||
|
||||
class MarketplaceCreateRequest(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user