fix: add default_peer_rpc_url for bulk sync fallback
All checks were successful
Integration Tests / test-service-integration (push) Successful in 11s
Python Tests / test-python (push) Successful in 19s
Security Scanning / security-scan (push) Successful in 33s
Blockchain Synchronization Verification / sync-verification (push) Successful in 4s
P2P Network Verification / p2p-verification (push) Successful in 3s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
All checks were successful
Integration Tests / test-service-integration (push) Successful in 11s
Python Tests / test-python (push) Successful in 19s
Security Scanning / security-scan (push) Successful in 33s
Blockchain Synchronization Verification / sync-verification (push) Successful in 4s
P2P Network Verification / p2p-verification (push) Successful in 3s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
- Add default_peer_rpc_url configuration parameter - Update bulk sync fallback to use default_peer_rpc_url instead of gossip_broadcast_url - Fixes 'unsupported protocol redis://' error in bulk sync - gossip_broadcast_url is for Redis backend, not HTTP RPC calls
This commit is contained in:
@@ -158,8 +158,8 @@ class BlockchainNode:
|
||||
# Get source URL from block metadata if available
|
||||
source_url = block_data.get("source_url")
|
||||
if not source_url:
|
||||
# Fallback to default peer URL from gossip backend
|
||||
source_url = settings.gossip_broadcast_url
|
||||
# Fallback to default peer RPC URL
|
||||
source_url = settings.default_peer_rpc_url
|
||||
|
||||
if source_url:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user