refactor: remove warning-only code path for state root validation
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 55s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 6s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 2s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Cross-Node Transaction Testing / transaction-test (push) Successful in 5s
Deploy to Testnet / deploy-testnet (push) Successful in 1m12s
Documentation Validation / validate-docs (push) Failing after 11s
Documentation Validation / validate-policies-strict (push) Successful in 2s
Integration Tests / test-service-integration (push) Successful in 2m38s
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 2s
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Failing after 25m16s
P2P Network Verification / p2p-verification (push) Successful in 2s

- Remove conditional checks for settings.enforce_state_root_validation
- Always enforce state root validation (no warning-only path)
- Simplify error handling to always reject on mismatch
- Update genesis metadata validation to always enforce
- State root validation is now mandatory across all nodes
This commit is contained in:
aitbc
2026-05-03 21:56:16 +02:00
parent 36cdd9b188
commit 11119a022e
5 changed files with 180 additions and 47 deletions

View File

@@ -13,7 +13,8 @@ Production-ready blockchain node for AITBC with fixed supply and secure key mana
- RESTful RPC API (`/rpc/*`)
- Prometheus metrics (`/metrics`)
- Health check endpoint (`/health`)
- SQLite persistence with Alembic migrations
- PostgreSQL mempool persistence (production nodes)
- SQLite chain database with Alembic migrations
- Multi-chain support (separate data directories per chain ID)
## Architecture

View File

@@ -35,6 +35,14 @@ Set `VITE_DATA_MODE=live` and `VITE_COORDINATOR_API` in the explorer web app to
Expects environment variables defined in `.env` (see `docs/bootstrap/coordinator_api.md`).
### Database
Production deployments use PostgreSQL for persistence. Configure via:
- `DATABASE_ADAPTER=postgresql`
- `DATABASE_URL=postgresql+psycopg://user:pass@localhost:5432/aitbc_coordinator`
SQLite fallback is available for development or nodes without PostgreSQL.
### Signed receipts (optional)
- Generate an Ed25519 key:

View File

@@ -28,7 +28,7 @@ Cross-chain exchange and trading platform supporting multiple blockchain network
### Prerequisites
- Python 3.13+
- PostgreSQL database
- PostgreSQL database (production default)
- Redis for caching
- Access to blockchain RPC endpoints