diff --git a/apps/blockchain-node/scripts/blockchain_simple.py b/apps/blockchain-node/scripts/blockchain_simple.py index af9997a8..25b4b11f 100755 --- a/apps/blockchain-node/scripts/blockchain_simple.py +++ b/apps/blockchain-node/scripts/blockchain_simple.py @@ -36,8 +36,8 @@ 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=int(os.environ.get("BLOCKCHAIN_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", 8006))) except ImportError as 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.start() - logger.info("Starting basic blockchain API on port 8545") - uvicorn.run(app, host="0.0.0.0", port=int(os.environ.get("BLOCKCHAIN_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", 8006))) except ImportError: # Fallback to simple heartbeat diff --git a/apps/coordinator-api/src/app/agent_identity/wallet_adapter.py b/apps/coordinator-api/src/app/agent_identity/wallet_adapter.py index e6c95735..50f129ef 100755 --- a/apps/coordinator-api/src/app/agent_identity/wallet_adapter.py +++ b/apps/coordinator-api/src/app/agent_identity/wallet_adapter.py @@ -253,7 +253,7 @@ class MultiChainWalletAdapter: }, 1000: { # AITBC Mainnet "chain_type": ChainType.AITBC, - "rpc_url": "http://localhost:8545", + "rpc_url": "http://localhost:8006", "name": "AITBC Mainnet", }, } diff --git a/apps/coordinator-api/src/app/settlement/bridges/base.py b/apps/coordinator-api/src/app/settlement/bridges/base.py index 6d960a26..90321c87 100755 --- a/apps/coordinator-api/src/app/settlement/bridges/base.py +++ b/apps/coordinator-api/src/app/settlement/bridges/base.py @@ -184,7 +184,7 @@ class BridgeMessageTooLargeError(BridgeError): class EthereumBridge(BridgeAdapter): """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) self.rpc_url = rpc_url self._web3_client = None diff --git a/cli/core/config.py b/cli/core/config.py index daaf7485..d7af6f50 100755 --- a/cli/core/config.py +++ b/cli/core/config.py @@ -75,7 +75,7 @@ def get_default_node_config() -> NodeConfig: """Get default node configuration for local development""" return NodeConfig( id="default-node", - endpoint="http://localhost:8545", + endpoint="http://localhost:8006", timeout=30, retry_count=3, max_connections=10 diff --git a/docs/apps/explorer/CLI_TOOLS.md b/docs/apps/explorer/CLI_TOOLS.md index 17fde1a9..c6260bd6 100644 --- a/docs/apps/explorer/CLI_TOOLS.md +++ b/docs/apps/explorer/CLI_TOOLS.md @@ -435,7 +435,7 @@ aitbc blockchain remote --node https://node.aitbc.dev aitbc blockchain remote --explorer https://explorer.aitbc.dev # SSH tunnel for secure access -aitbc blockchain tunnel --ssh user@server --port 8545 +aitbc blockchain tunnel --ssh user@server --port 8006 ``` ### Mobile Optimization diff --git a/docs/deployment/SETUP.md b/docs/deployment/SETUP.md index ed6f7924..9619db84 100644 --- a/docs/deployment/SETUP.md +++ b/docs/deployment/SETUP.md @@ -85,7 +85,7 @@ AITBC uses standard Linux system directories for runtime data: | Wallet API | 8003 | `http://localhost:8003/health` | | Exchange API | 8001 | `http://localhost:8001/api/health` | | Coordinator API | 8000 | `http://localhost:8011/health` | -| Blockchain RPC | 8545 | `http://localhost:8545` | +| Blockchain RPC | 8006 | `http://localhost:8006/health` | ## Management Commands diff --git a/docs/infrastructure/README.md b/docs/infrastructure/README.md index 715f453e..d3fb1009 100644 --- a/docs/infrastructure/README.md +++ b/docs/infrastructure/README.md @@ -32,7 +32,7 @@ This section documents the AITBC infrastructure components, runtime architecture #### Core Services - **Coordinator API**: Central orchestration (Port 8011) -- **Blockchain Node**: Core blockchain (Port 8545) +- **Blockchain Node**: Core blockchain (Port 8006) - **Exchange API**: Trading services (Port 8001) - **Wallet Service**: Wallet management (Port 8003) diff --git a/docs/scenarios/47_cross_chain_atomic_swap.md b/docs/scenarios/47_cross_chain_atomic_swap.md index 6b526a68..bf792a05 100644 --- a/docs/scenarios/47_cross_chain_atomic_swap.md +++ b/docs/scenarios/47_cross_chain_atomic_swap.md @@ -77,7 +77,7 @@ Before running this scenario, you must deploy the CrossChainAtomicSwap contract aitbc contract deploy \ --name CrossChainAtomicSwap \ --type atomic-swap \ - --rpc-url http://localhost:8545 \ + --rpc-url http://localhost:8006 \ --password-file ~/.aitbc/wallets/mainnet-wallet.password # Deploy on destination chain @@ -123,7 +123,7 @@ Lock tokens on source chain with hashlock and timelock: aitbc contract deploy \ --name CrossChainAtomicSwap \ --type atomic-swap \ - --rpc-url http://localhost:8545 \ + --rpc-url http://localhost:8006 \ --password-file ~/.aitbc/wallets/mainnet-wallet.password # Call the initiateSwap method @@ -131,7 +131,7 @@ aitbc contract call \ --address \ --method initiateSwap \ --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 ``` @@ -180,7 +180,7 @@ aitbc contract call \ --address \ --method completeSwap \ --params '{"swapId": "'"$SWAP_ID"'", "secret": "'"$SECRET"'"}' \ - --rpc-url http://localhost:8545 \ + --rpc-url http://localhost:8006 \ --password-file ~/.aitbc/wallets/mainnet-wallet.password # Counterparty completes with same secret on destination chain @@ -222,7 +222,7 @@ aitbc contract call \ --address \ --method refundSwap \ --params '{"swapId": "'"$SWAP_ID"'"}' \ - --rpc-url http://localhost:8545 \ + --rpc-url http://localhost:8006 \ --password-file ~/.aitbc/wallets/mainnet-wallet.password ``` diff --git a/docs/scenarios/TROUBLESHOOTING_GUIDE.md b/docs/scenarios/TROUBLESHOOTING_GUIDE.md index ff10b5e7..f70fd591 100644 --- a/docs/scenarios/TROUBLESHOOTING_GUIDE.md +++ b/docs/scenarios/TROUBLESHOOTING_GUIDE.md @@ -428,7 +428,7 @@ env | grep AITBC ### Network Diagnostics ```bash # 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}' # Check peer connections diff --git a/packages/github/README.md b/packages/github/README.md index e8d5fa34..779e48a3 100644 --- a/packages/github/README.md +++ b/packages/github/README.md @@ -196,7 +196,7 @@ sudo journalctl -u aitbc-node.service -f ## 🌐 **Network Configuration** ### **Default Ports** -- **Node:** 30333 (P2P), 8545 (RPC) +- **Node:** 30333 (P2P), 8006 (RPC) - **Coordinator:** 8000 (API) - **Marketplace:** 8001 (API) - **Explorer:** 3000 (Web), 3001 (API) diff --git a/scripts/deployment/production-deploy.sh b/scripts/deployment/production-deploy.sh index 21558028..ab9238b6 100755 --- a/scripts/deployment/production-deploy.sh +++ b/scripts/deployment/production-deploy.sh @@ -108,7 +108,7 @@ echo "========================" echo -e "${GREEN}✅ Localhost: ACTIVE${NC}" 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 if ssh aitbc1 'cd /opt/aitbc && test -f data/agent_registry.json' 2>/dev/null; then diff --git a/scripts/deployment/production-setup.sh b/scripts/deployment/production-setup.sh index 8517ee6e..b3b9c02d 100755 --- a/scripts/deployment/production-setup.sh +++ b/scripts/deployment/production-setup.sh @@ -227,7 +227,7 @@ CHAIN_ID=1337 CONSENSUS=proof_of_authority # Services -BLOCKCHAIN_RPC_PORT=8545 +BLOCKCHAIN_RPC_PORT=8006 MARKETPLACE_PORT=8002 GPU_MARKETPLACE_PORT=8003 MONITORING_PORT=9000 diff --git a/scripts/monitoring/dashboard.sh b/scripts/monitoring/dashboard.sh index 37c1b819..9c180a9c 100755 --- a/scripts/monitoring/dashboard.sh +++ b/scripts/monitoring/dashboard.sh @@ -81,7 +81,7 @@ else fi # Check ports -ports=("8545" "30303" "9090") +ports=("8006" "30303" "9090") for port in "${ports[@]}"; do if netstat -tuln 2>/dev/null | grep -q ":$port "; then echo -e "${GREEN}✅ Port $port: OPEN${NC}" diff --git a/tests/README.md b/tests/README.md index e2ee33ec..42b5535d 100644 --- a/tests/README.md +++ b/tests/README.md @@ -317,7 +317,7 @@ export TEST_REDIS_URL="redis://localhost:6379/1" # Service URLs for integration tests export COORDINATOR_URL="http://localhost:8001" export WALLET_URL="http://localhost:8002" -export BLOCKCHAIN_URL="http://localhost:8545" +export BLOCKCHAIN_URL="http://localhost:8006" # Security test configuration export TEST_HSM_ENDPOINT="http://localhost:9999"