debug: add chain_id to all genesis initialization log messages
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Failing after 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Failing after 3s
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 1m11s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 3s
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled

This commit is contained in:
aitbc
2026-05-09 18:47:52 +02:00
parent 63aac21a59
commit 13e865ae74

View File

@@ -497,23 +497,23 @@ class PoAProposer:
# Try local file first
local_allocations = self._load_genesis_allocations_from_file()
if local_allocations:
self._logger.info("Using local genesis allocations file")
self._logger.info(f"Using local genesis allocations file for chain {self._config.chain_id}")
self._create_accounts_from_allocations(session, local_allocations)
return
# Try RPC bootstrap
self._logger.info("Local genesis file not found, attempting RPC bootstrap")
self._logger.info(f"Local genesis file not found for chain {self._config.chain_id}, attempting RPC bootstrap")
try:
rpc_allocations = await self._load_genesis_allocations_from_rpc()
if rpc_allocations:
self._logger.info(f"Loaded {len(rpc_allocations)} allocations via RPC bootstrap")
self._logger.info(f"Loaded {len(rpc_allocations)} allocations via RPC bootstrap for chain {self._config.chain_id}")
self._create_accounts_from_allocations(session, rpc_allocations)
self._logger.info("RPC bootstrap completed successfully, skipping local file")
self._logger.info(f"RPC bootstrap completed successfully for chain {self._config.chain_id}, skipping local file")
return # Return early to avoid falling back to local file
else:
self._logger.warning("RPC bootstrap returned no allocations, skipping account initialization")
self._logger.warning(f"RPC bootstrap returned no allocations for chain {self._config.chain_id}, skipping account initialization")
except Exception as e:
self._logger.warning(f"RPC bootstrap failed: {e}, skipping account initialization")
self._logger.warning(f"RPC bootstrap failed for chain {self._config.chain_id}: {e}, skipping account initialization")
def _load_genesis_allocations_from_file(self) -> list:
"""Load genesis allocations from local file."""