debug: add chain_id logging to genesis initialization
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 4s
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 1m11s
Integration Tests / test-service-integration (push) Successful in 2m9s
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 1s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Failing after 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Failing after 48s
Security Scanning / security-scan (push) Successful in 25s
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 4s
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 1m11s
Integration Tests / test-service-integration (push) Successful in 2m9s
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 1s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
Multi-Node Stress Testing / stress-test (push) Successful in 2s
Node Failover Simulation / failover-test (push) Failing after 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Failing after 48s
Security Scanning / security-scan (push) Successful in 25s
This commit is contained in:
@@ -492,6 +492,8 @@ class PoAProposer:
|
||||
|
||||
async def _initialize_genesis_allocations(self, session: Session) -> None:
|
||||
"""Create Account entries from the genesis allocations file or RPC bootstrap."""
|
||||
self._logger.info(f"Initializing genesis allocations for chain: {self._config.chain_id}")
|
||||
|
||||
# Try local file first
|
||||
local_allocations = self._load_genesis_allocations_from_file()
|
||||
if local_allocations:
|
||||
@@ -506,6 +508,7 @@ class PoAProposer:
|
||||
if rpc_allocations:
|
||||
self._logger.info(f"Loaded {len(rpc_allocations)} allocations via RPC bootstrap")
|
||||
self._create_accounts_from_allocations(session, rpc_allocations)
|
||||
self._logger.info("RPC bootstrap completed successfully, 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")
|
||||
@@ -516,7 +519,6 @@ class PoAProposer:
|
||||
"""Load genesis allocations from local file."""
|
||||
genesis_paths = [
|
||||
Path(f"/var/lib/aitbc/data/{self._config.chain_id}/genesis.json"), # Standard location
|
||||
Path(f"/var/lib/aitbc/keystore/genesis.json"), # Keystore location
|
||||
]
|
||||
|
||||
genesis_path = None
|
||||
|
||||
Reference in New Issue
Block a user