fix: update legacy port 8545 to 8006 across codebase
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
Documentation Validation / validate-policies-strict (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Has been cancelled
Coverage Phase 1 (70% Target) / test-coverage-70 (push) Has been cancelled
Coverage Phase 2 (85% Target) / test-coverage-85 (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Has been cancelled
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Has been cancelled
Cross-Chain Functionality Tests / aggregate-results (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 58s
Package Tests / Python package - aitbc-core (push) Failing after 3s
Package Tests / Python package - aitbc-crypto (push) Successful in 19s
Package Tests / Python package - aitbc-sdk (push) Successful in 16s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 24s
Package Tests / JavaScript package - aitbc-token (push) Failing after 10s
Production Tests / Production Integration Tests (push) Failing after 1m10s
API Endpoint Tests / test-api-endpoints (push) Failing after 11m17s
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
Documentation Validation / validate-policies-strict (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Has been cancelled
Coverage Phase 1 (70% Target) / test-coverage-70 (push) Has been cancelled
Coverage Phase 2 (85% Target) / test-coverage-85 (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Has been cancelled
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Has been cancelled
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Has been cancelled
Cross-Chain Functionality Tests / aggregate-results (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 58s
Package Tests / Python package - aitbc-core (push) Failing after 3s
Package Tests / Python package - aitbc-crypto (push) Successful in 19s
Package Tests / Python package - aitbc-sdk (push) Successful in 16s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 24s
Package Tests / JavaScript package - aitbc-token (push) Failing after 10s
Production Tests / Production Integration Tests (push) Failing after 1m10s
API Endpoint Tests / test-api-endpoints (push) Failing after 11m17s
- Updated Blockchain RPC port from legacy 8545 to current 8006 - Updated documentation files (SETUP.md, infrastructure README, etc.) - Updated code files (config.py, wallet_adapter.py, base.py, blockchain_simple.py) - Updated scripts (production-setup.sh, production-deploy.sh, dashboard.sh) - Updated test configuration (tests/README.md) - Fixed service endpoints table in SETUP.md - hermes agents will now use correct port 8006 for blockchain RPC
This commit is contained in:
@@ -36,8 +36,8 @@ def main():
|
|||||||
|
|
||||||
# Run the blockchain FastAPI app
|
# Run the blockchain FastAPI app
|
||||||
import uvicorn
|
import uvicorn
|
||||||
logger.info("Starting blockchain FastAPI app on port 8545")
|
logger.info("Starting blockchain FastAPI app on port 8006")
|
||||||
uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("BLOCKCHAIN_PORT", 8545)))
|
uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("BLOCKCHAIN_PORT", 8006)))
|
||||||
|
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
logger.error(f"Failed to import blockchain app: {e}")
|
logger.error(f"Failed to import blockchain app: {e}")
|
||||||
@@ -121,8 +121,8 @@ def basic_blockchain_node():
|
|||||||
activity_thread = threading.Thread(target=blockchain_activity, daemon=True)
|
activity_thread = threading.Thread(target=blockchain_activity, daemon=True)
|
||||||
activity_thread.start()
|
activity_thread.start()
|
||||||
|
|
||||||
logger.info("Starting basic blockchain API on port 8545")
|
logger.info("Starting basic blockchain API on port 8006")
|
||||||
uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("BLOCKCHAIN_PORT", 8545)))
|
uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("BLOCKCHAIN_PORT", 8006)))
|
||||||
|
|
||||||
except ImportError:
|
except ImportError:
|
||||||
# Fallback to simple heartbeat
|
# Fallback to simple heartbeat
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ class MultiChainWalletAdapter:
|
|||||||
},
|
},
|
||||||
1000: { # AITBC Mainnet
|
1000: { # AITBC Mainnet
|
||||||
"chain_type": ChainType.AITBC,
|
"chain_type": ChainType.AITBC,
|
||||||
"rpc_url": "http://localhost:8545",
|
"rpc_url": "http://localhost:8006",
|
||||||
"name": "AITBC Mainnet",
|
"name": "AITBC Mainnet",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ class BridgeMessageTooLargeError(BridgeError):
|
|||||||
class EthereumBridge(BridgeAdapter):
|
class EthereumBridge(BridgeAdapter):
|
||||||
"""Ethereum settlement bridge implementation"""
|
"""Ethereum settlement bridge implementation"""
|
||||||
|
|
||||||
def __init__(self, config: BridgeConfig, rpc_url: str = "http://localhost:8545"):
|
def __init__(self, config: BridgeConfig, rpc_url: str = "http://localhost:8006"):
|
||||||
super().__init__(config)
|
super().__init__(config)
|
||||||
self.rpc_url = rpc_url
|
self.rpc_url = rpc_url
|
||||||
self._web3_client = None
|
self._web3_client = None
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ def get_default_node_config() -> NodeConfig:
|
|||||||
"""Get default node configuration for local development"""
|
"""Get default node configuration for local development"""
|
||||||
return NodeConfig(
|
return NodeConfig(
|
||||||
id="default-node",
|
id="default-node",
|
||||||
endpoint="http://localhost:8545",
|
endpoint="http://localhost:8006",
|
||||||
timeout=30,
|
timeout=30,
|
||||||
retry_count=3,
|
retry_count=3,
|
||||||
max_connections=10
|
max_connections=10
|
||||||
|
|||||||
@@ -435,7 +435,7 @@ aitbc blockchain remote --node https://node.aitbc.dev
|
|||||||
aitbc blockchain remote --explorer https://explorer.aitbc.dev
|
aitbc blockchain remote --explorer https://explorer.aitbc.dev
|
||||||
|
|
||||||
# SSH tunnel for secure access
|
# SSH tunnel for secure access
|
||||||
aitbc blockchain tunnel --ssh user@server --port 8545
|
aitbc blockchain tunnel --ssh user@server --port 8006
|
||||||
```
|
```
|
||||||
|
|
||||||
### Mobile Optimization
|
### Mobile Optimization
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ AITBC uses standard Linux system directories for runtime data:
|
|||||||
| Wallet API | 8003 | `http://localhost:8003/health` |
|
| Wallet API | 8003 | `http://localhost:8003/health` |
|
||||||
| Exchange API | 8001 | `http://localhost:8001/api/health` |
|
| Exchange API | 8001 | `http://localhost:8001/api/health` |
|
||||||
| Coordinator API | 8000 | `http://localhost:8011/health` |
|
| Coordinator API | 8000 | `http://localhost:8011/health` |
|
||||||
| Blockchain RPC | 8545 | `http://localhost:8545` |
|
| Blockchain RPC | 8006 | `http://localhost:8006/health` |
|
||||||
|
|
||||||
## Management Commands
|
## Management Commands
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ This section documents the AITBC infrastructure components, runtime architecture
|
|||||||
|
|
||||||
#### Core Services
|
#### Core Services
|
||||||
- **Coordinator API**: Central orchestration (Port 8011)
|
- **Coordinator API**: Central orchestration (Port 8011)
|
||||||
- **Blockchain Node**: Core blockchain (Port 8545)
|
- **Blockchain Node**: Core blockchain (Port 8006)
|
||||||
- **Exchange API**: Trading services (Port 8001)
|
- **Exchange API**: Trading services (Port 8001)
|
||||||
- **Wallet Service**: Wallet management (Port 8003)
|
- **Wallet Service**: Wallet management (Port 8003)
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ Before running this scenario, you must deploy the CrossChainAtomicSwap contract
|
|||||||
aitbc contract deploy \
|
aitbc contract deploy \
|
||||||
--name CrossChainAtomicSwap \
|
--name CrossChainAtomicSwap \
|
||||||
--type atomic-swap \
|
--type atomic-swap \
|
||||||
--rpc-url http://localhost:8545 \
|
--rpc-url http://localhost:8006 \
|
||||||
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
||||||
|
|
||||||
# Deploy on destination chain
|
# Deploy on destination chain
|
||||||
@@ -123,7 +123,7 @@ Lock tokens on source chain with hashlock and timelock:
|
|||||||
aitbc contract deploy \
|
aitbc contract deploy \
|
||||||
--name CrossChainAtomicSwap \
|
--name CrossChainAtomicSwap \
|
||||||
--type atomic-swap \
|
--type atomic-swap \
|
||||||
--rpc-url http://localhost:8545 \
|
--rpc-url http://localhost:8006 \
|
||||||
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
||||||
|
|
||||||
# Call the initiateSwap method
|
# Call the initiateSwap method
|
||||||
@@ -131,7 +131,7 @@ aitbc contract call \
|
|||||||
--address <CONTRACT_ADDRESS> \
|
--address <CONTRACT_ADDRESS> \
|
||||||
--method initiateSwap \
|
--method initiateSwap \
|
||||||
--params '{"swapId": "'"$SWAP_ID"'", "token": "AITBC", "amount": 1000, "participant": "aitbc1recipient", "hashlock": "'"$HASHLOCK"'", "timelock": 3600}' \
|
--params '{"swapId": "'"$SWAP_ID"'", "token": "AITBC", "amount": 1000, "participant": "aitbc1recipient", "hashlock": "'"$HASHLOCK"'", "timelock": 3600}' \
|
||||||
--rpc-url http://localhost:8545 \
|
--rpc-url http://localhost:8006 \
|
||||||
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -180,7 +180,7 @@ aitbc contract call \
|
|||||||
--address <CONTRACT_ADDRESS> \
|
--address <CONTRACT_ADDRESS> \
|
||||||
--method completeSwap \
|
--method completeSwap \
|
||||||
--params '{"swapId": "'"$SWAP_ID"'", "secret": "'"$SECRET"'"}' \
|
--params '{"swapId": "'"$SWAP_ID"'", "secret": "'"$SECRET"'"}' \
|
||||||
--rpc-url http://localhost:8545 \
|
--rpc-url http://localhost:8006 \
|
||||||
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
||||||
|
|
||||||
# Counterparty completes with same secret on destination chain
|
# Counterparty completes with same secret on destination chain
|
||||||
@@ -222,7 +222,7 @@ aitbc contract call \
|
|||||||
--address <CONTRACT_ADDRESS> \
|
--address <CONTRACT_ADDRESS> \
|
||||||
--method refundSwap \
|
--method refundSwap \
|
||||||
--params '{"swapId": "'"$SWAP_ID"'"}' \
|
--params '{"swapId": "'"$SWAP_ID"'"}' \
|
||||||
--rpc-url http://localhost:8545 \
|
--rpc-url http://localhost:8006 \
|
||||||
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
--password-file ~/.aitbc/wallets/mainnet-wallet.password
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ env | grep AITBC
|
|||||||
### Network Diagnostics
|
### Network Diagnostics
|
||||||
```bash
|
```bash
|
||||||
# Check connectivity to blockchain node
|
# Check connectivity to blockchain node
|
||||||
curl -X POST http://localhost:8545 -H "Content-Type: application/json" \
|
curl -X POST http://localhost:8006 -H "Content-Type: application/json" \
|
||||||
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
|
||||||
|
|
||||||
# Check peer connections
|
# Check peer connections
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ sudo journalctl -u aitbc-node.service -f
|
|||||||
## 🌐 **Network Configuration**
|
## 🌐 **Network Configuration**
|
||||||
|
|
||||||
### **Default Ports**
|
### **Default Ports**
|
||||||
- **Node:** 30333 (P2P), 8545 (RPC)
|
- **Node:** 30333 (P2P), 8006 (RPC)
|
||||||
- **Coordinator:** 8000 (API)
|
- **Coordinator:** 8000 (API)
|
||||||
- **Marketplace:** 8001 (API)
|
- **Marketplace:** 8001 (API)
|
||||||
- **Explorer:** 3000 (Web), 3001 (API)
|
- **Explorer:** 3000 (Web), 3001 (API)
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ echo "========================"
|
|||||||
|
|
||||||
echo -e "${GREEN}✅ Localhost: ACTIVE${NC}"
|
echo -e "${GREEN}✅ Localhost: ACTIVE${NC}"
|
||||||
echo " Status: Production ready"
|
echo " Status: Production ready"
|
||||||
echo " Agents: $(curl -s http://localhost:8545/health 2>/dev/null || echo "API not running")"
|
echo " Agents: $(curl -s http://localhost:8006/health 2>/dev/null || echo "API not running")"
|
||||||
|
|
||||||
# Check aitbc1 status
|
# Check aitbc1 status
|
||||||
if ssh aitbc1 'cd /opt/aitbc && test -f data/agent_registry.json' 2>/dev/null; then
|
if ssh aitbc1 'cd /opt/aitbc && test -f data/agent_registry.json' 2>/dev/null; then
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ CHAIN_ID=1337
|
|||||||
CONSENSUS=proof_of_authority
|
CONSENSUS=proof_of_authority
|
||||||
|
|
||||||
# Services
|
# Services
|
||||||
BLOCKCHAIN_RPC_PORT=8545
|
BLOCKCHAIN_RPC_PORT=8006
|
||||||
MARKETPLACE_PORT=8002
|
MARKETPLACE_PORT=8002
|
||||||
GPU_MARKETPLACE_PORT=8003
|
GPU_MARKETPLACE_PORT=8003
|
||||||
MONITORING_PORT=9000
|
MONITORING_PORT=9000
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Check ports
|
# Check ports
|
||||||
ports=("8545" "30303" "9090")
|
ports=("8006" "30303" "9090")
|
||||||
for port in "${ports[@]}"; do
|
for port in "${ports[@]}"; do
|
||||||
if netstat -tuln 2>/dev/null | grep -q ":$port "; then
|
if netstat -tuln 2>/dev/null | grep -q ":$port "; then
|
||||||
echo -e "${GREEN}✅ Port $port: OPEN${NC}"
|
echo -e "${GREEN}✅ Port $port: OPEN${NC}"
|
||||||
|
|||||||
@@ -317,7 +317,7 @@ export TEST_REDIS_URL="redis://localhost:6379/1"
|
|||||||
# Service URLs for integration tests
|
# Service URLs for integration tests
|
||||||
export COORDINATOR_URL="http://localhost:8001"
|
export COORDINATOR_URL="http://localhost:8001"
|
||||||
export WALLET_URL="http://localhost:8002"
|
export WALLET_URL="http://localhost:8002"
|
||||||
export BLOCKCHAIN_URL="http://localhost:8545"
|
export BLOCKCHAIN_URL="http://localhost:8006"
|
||||||
|
|
||||||
# Security test configuration
|
# Security test configuration
|
||||||
export TEST_HSM_ENDPOINT="http://localhost:9999"
|
export TEST_HSM_ENDPOINT="http://localhost:9999"
|
||||||
|
|||||||
Reference in New Issue
Block a user