From 08b33bffd83c874f849d30c33a1fff8e87272850 Mon Sep 17 00:00:00 2001 From: aitbc Date: Sat, 9 May 2026 18:45:09 +0200 Subject: [PATCH] revert: remove keystore path from genesis file search --- apps/blockchain-node/src/aitbc_chain/consensus/poa.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/blockchain-node/src/aitbc_chain/consensus/poa.py b/apps/blockchain-node/src/aitbc_chain/consensus/poa.py index 50dd3664..86202fd4 100755 --- a/apps/blockchain-node/src/aitbc_chain/consensus/poa.py +++ b/apps/blockchain-node/src/aitbc_chain/consensus/poa.py @@ -511,17 +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.""" 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