- Change file mode from 644 to 755 for all project files - Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet" - Rename Miner.extra_meta_data to extra_metadata for consistency
20 lines
542 B
Python
Executable File
20 lines
542 B
Python
Executable File
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/config.py", "r") as f:
|
|
content = f.read()
|
|
|
|
content = content.replace(
|
|
"class ChainSettings(BaseSettings):",
|
|
"""from pydantic import BaseModel
|
|
|
|
class ProposerConfig(BaseModel):
|
|
chain_id: str
|
|
proposer_id: str
|
|
interval_seconds: int
|
|
max_block_size_bytes: int
|
|
max_txs_per_block: int
|
|
|
|
class ChainSettings(BaseSettings):"""
|
|
)
|
|
|
|
with open("/home/oib/windsurf/aitbc/apps/blockchain-node/src/aitbc_chain/config.py", "w") as f:
|
|
f.write(content)
|