fix: always strip http:// prefix from default_peer_rpc_url before adding it back
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Failing after 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 3s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Failing after 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Cross-Node Transaction Testing / transaction-test (push) Successful in 2s
Deploy to Testnet / deploy-testnet (push) Successful in 1m13s
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
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Security Scanning / security-scan (push) Has been cancelled

This commit is contained in:
aitbc
2026-05-09 18:34:56 +02:00
parent fda27f2c6a
commit 865bbfcf96

View File

@@ -563,10 +563,15 @@ class PoAProposer:
import httpx
# Try multiple trusted peers
trusted_peers = [
f"http://{self._config.default_peer_rpc_url}",
"http://localhost:8006",
]
trusted_peers = []
if self._config.default_peer_rpc_url:
peer_url = self._config.default_peer_rpc_url
# Remove http:// prefix if present to avoid double prefix
if peer_url.startswith("http://"):
peer_url = peer_url.replace("http://", "")
peer_url = f"http://{peer_url}"
trusted_peers.append(peer_url)
trusted_peers.append("http://localhost:8006")
self._logger.info(f"Attempting RPC bootstrap from peers: {trusted_peers}")