Add P2P mempool sync and cleanup legacy services

This commit is contained in:
aitbc1
2026-04-09 14:15:00 +02:00
parent 9bf38e1662
commit 88db347df8
6 changed files with 343 additions and 132 deletions

View File

@@ -41,7 +41,7 @@ def main():
# Run the blockchain FastAPI app
import uvicorn
logger.info("Starting blockchain FastAPI app on port 8545")
uvicorn.run(app, host="0.0.0.0", port=8545)
uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("BLOCKCHAIN_PORT", 8545)))
except ImportError as e:
logger.error(f"Failed to import blockchain app: {e}")
@@ -126,7 +126,7 @@ def basic_blockchain_node():
activity_thread.start()
logger.info("Starting basic blockchain API on port 8545")
uvicorn.run(app, host="0.0.0.0", port=8545)
uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("BLOCKCHAIN_PORT", 8545)))
except ImportError:
# Fallback to simple heartbeat