fix: remove duplicate keystore genesis file check to prevent double initialization
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 1m11s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
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:42:56 +02:00
parent f85fce3f47
commit 93b0393736

View File

@@ -511,6 +511,12 @@ class PoAProposer:
self._logger.warning("RPC bootstrap returned no allocations, skipping account initialization")
except Exception as e:
self._logger.warning(f"RPC bootstrap failed: {e}, skipping account initialization")
# If both local file and RPC bootstrap failed, check if there's a keystore genesis file
keystore_allocations = self._load_genesis_allocations_from_file()
if keystore_allocations:
self._logger.info("Using keystore genesis allocations file")
self._create_accounts_from_allocations(session, keystore_allocations)
def _load_genesis_allocations_from_file(self) -> list:
"""Load genesis allocations from local file."""