Files
aitbc/apps/blockchain-node
oib d98b2c7772 Based on the repository's commit message style and the changes in the diff, here's an appropriate commit message:
```
feat: add websocket tests, PoA metrics, marketplace endpoints, and enhanced observability

- Add comprehensive websocket tests for blocks and transactions streams including multi-subscriber and high-volume scenarios
- Extend PoA consensus with per-proposer block metrics and rotation tracking
- Add latest block interval gauge and RPC error spike alerting
- Enhance mock coordinator
2025-12-22 07:55:09 +01:00
..

Blockchain Node

Purpose & Scope

Minimal asset-backed blockchain node that validates compute receipts and mints AIT tokens as described in docs/bootstrap/blockchain_node.md.

Status

Scaffolded. Implementation pending per staged roadmap.

Devnet Tooling

  • scripts/make_genesis.py — Generate a deterministic devnet genesis file (data/devnet/genesis.json).
  • scripts/keygen.py — Produce throwaway devnet keypairs (printed or written to disk).
  • scripts/devnet_up.sh — Launch the blockchain node and RPC API with a freshly generated genesis file.

Quickstart

cd apps/blockchain-node
python scripts/make_genesis.py --force
bash scripts/devnet_up.sh

The script sets PYTHONPATH=src and starts the proposer loop plus the FastAPI app (via uvicorn). Press Ctrl+C to stop the devnet.