revert: remove keystore path from genesis file search
This commit is contained in:
@@ -512,16 +512,11 @@ class PoAProposer:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user