chore: bump version to v0.2.2 across all components
- Update pyproject.toml version from 0.1.0 to v0.2.2 - Update FastAPI app version in blockchain node - Update mock coordinator API version - Update RPC version in blockchain info endpoint
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "aitbc-blockchain-node"
|
name = "aitbc-blockchain-node"
|
||||||
version = "0.1.0"
|
version = "v0.2.2"
|
||||||
description = "AITBC blockchain node service"
|
description = "AITBC blockchain node service"
|
||||||
authors = ["AITBC Team"]
|
authors = ["AITBC Team"]
|
||||||
packages = [
|
packages = [
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ from fastapi.responses import PlainTextResponse
|
|||||||
|
|
||||||
from aitbc_chain.metrics import metrics_registry
|
from aitbc_chain.metrics import metrics_registry
|
||||||
|
|
||||||
app = FastAPI(title="Mock Coordinator API", version="0.1.0")
|
app = FastAPI(title="Mock Coordinator API", version="v0.2.2")
|
||||||
|
|
||||||
SIMULATED_MINERS: List[str] = ["miner-alpha", "miner-beta", "miner-gamma"]
|
SIMULATED_MINERS: List[str] = ["miner-alpha", "miner-beta", "miner-gamma"]
|
||||||
SIMULATED_CLIENTS: List[str] = ["client-labs", "client-trading", "client-research"]
|
SIMULATED_CLIENTS: List[str] = ["client-labs", "client-trading", "client-research"]
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ async def lifespan(app: FastAPI):
|
|||||||
|
|
||||||
|
|
||||||
def create_app() -> FastAPI:
|
def create_app() -> FastAPI:
|
||||||
app = FastAPI(title="AITBC Blockchain Node", version="0.1.0", lifespan=lifespan)
|
app = FastAPI(title="AITBC Blockchain Node", version="v0.2.2", lifespan=lifespan)
|
||||||
|
|
||||||
# Middleware (applied in reverse order)
|
# Middleware (applied in reverse order)
|
||||||
app.add_middleware(RequestLoggingMiddleware)
|
app.add_middleware(RequestLoggingMiddleware)
|
||||||
|
|||||||
@@ -661,7 +661,7 @@ async def get_blockchain_info(chain_id: str = None) -> Dict[str, Any]:
|
|||||||
"genesis_params": genesis_params,
|
"genesis_params": genesis_params,
|
||||||
"proposer_id": cfg.proposer_id,
|
"proposer_id": cfg.proposer_id,
|
||||||
"supported_chains": [c.strip() for c in cfg.supported_chains.split(",") if c.strip()],
|
"supported_chains": [c.strip() for c in cfg.supported_chains.split(",") if c.strip()],
|
||||||
"rpc_version": "0.1.0"
|
"rpc_version": "v0.2.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
metrics_registry.observe("rpc_info_duration_seconds", time.perf_counter() - start)
|
metrics_registry.observe("rpc_info_duration_seconds", time.perf_counter() - start)
|
||||||
|
|||||||
Reference in New Issue
Block a user