refactor: centralize all dynamic data to /opt/aitbc/data directory
- Move blockchain data from apps/blockchain-node/data to centralized data directory - Update configuration files to reference new data paths - Remove old data directory structure - Maintain existing database files and chain data
This commit is contained in:
@@ -17,7 +17,7 @@ keystore_path=/opt/aitbc/keystore
|
||||
keystore_password_file=/opt/aitbc/keystore/.password
|
||||
gossip_backend=broadcast
|
||||
gossip_broadcast_url=redis://127.0.0.1:6379
|
||||
db_path=/opt/aitbc/apps/blockchain-node/data/ait-mainnet/chain.db
|
||||
db_path=/opt/aitbc/data/ait-mainnet/chain.db
|
||||
mint_per_unit=0
|
||||
coordinator_ratio=0.05
|
||||
block_time_seconds=60
|
||||
|
||||
@@ -20,7 +20,7 @@ class ChainSettings(BaseSettings):
|
||||
|
||||
chain_id: str = ""
|
||||
supported_chains: str = "ait-devnet" # Comma-separated list of supported chain IDs
|
||||
db_path: Path = Path("./data/chain.db")
|
||||
db_path: Path = Path("/opt/aitbc/data/chain.db")
|
||||
|
||||
rpc_bind_host: str = "127.0.0.1"
|
||||
rpc_bind_port: int = 8080
|
||||
|
||||
@@ -36,7 +36,7 @@ def deploy_to_container(container_name, genesis_config):
|
||||
print(f"🧹 Clearing existing blockchain data on {container_name}...")
|
||||
subprocess.run([
|
||||
'ssh', container_name,
|
||||
'sudo rm -f /opt/aitbc/apps/blockchain-node/data/chain.db'
|
||||
'sudo rm -f /opt/aitbc/data/chain.db'
|
||||
], check=False)
|
||||
|
||||
# Initialize new genesis
|
||||
|
||||
Reference in New Issue
Block a user