fix: use memory mempool backend to avoid PostgreSQL dependency
All checks were successful
Cross-Node Transaction Testing / transaction-test (push) Successful in 3s
Deploy to Testnet / deploy-testnet (push) Successful in 1m42s
Multi-Node Stress Testing / stress-test (push) Successful in 6s

- Remove psycopg2 from dependencies (compilation requires pg_config.h)
- Set default MEMPOOL_BACKEND=memory to avoid PostgreSQL
- Fix build error: fatal error: pg_config.h: No such file or directory
This commit is contained in:
aitbc
2026-05-20 09:55:09 +02:00
parent b80475412e
commit f54f508805

View File

@@ -96,7 +96,7 @@ setup_python_environment() {
# Install essential blockchain-node dependencies
log_info "Installing essential dependencies"
pip install pydantic pydantic-settings fastapi uvicorn sqlalchemy sqlmodel psycopg2-binary psycopg2 aiosqlite httpx redis prometheus-client alembic
pip install pydantic pydantic-settings fastapi uvicorn sqlalchemy sqlmodel psycopg2-binary aiosqlite httpx redis prometheus-client alembic
# Install blockchain-node package in editable mode
if [ -f "apps/blockchain-node/pyproject.toml" ]; then
@@ -148,6 +148,7 @@ P2P_BIND_PORT=8001
ENABLE_BLOCK_PRODUCTION=false
GOSSIP_BROADCAST_URL=redis://127.0.0.1:6379
CROSS_SITE_REMOTE_ENDPOINTS=
MEMPOOL_BACKEND=memory
EOF
chmod 600 "$ENV_FILE"
log_info "Created $ENV_FILE"