chore: update file permissions to executable across repository
- 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
This commit is contained in:
2
apps/blockchain-node/src/aitbc_chain/rpc/router.py
Normal file → Executable file
2
apps/blockchain-node/src/aitbc_chain/rpc/router.py
Normal file → Executable file
@@ -300,7 +300,7 @@ async def get_receipts(limit: int = 20, offset: int = 0) -> Dict[str, Any]:
|
||||
|
||||
|
||||
@router.get("/getBalance/{address}", summary="Get account balance")
|
||||
async def get_balance(address: str) -> Dict[str, Any]:
|
||||
async def get_balance(address: str, chain_id: str = "ait-devnet") -> Dict[str, Any]:
|
||||
metrics_registry.increment("rpc_get_balance_total")
|
||||
start = time.perf_counter()
|
||||
with session_scope() as session:
|
||||
|
||||
0
apps/blockchain-node/src/aitbc_chain/rpc/websocket.py
Normal file → Executable file
0
apps/blockchain-node/src/aitbc_chain/rpc/websocket.py
Normal file → Executable file
Reference in New Issue
Block a user