Implement RECEIPT_CLAIM transaction type
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 4s
Documentation Validation / validate-docs (push) Successful in 12s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Integration Tests / test-service-integration (push) Failing after 12s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 10s
Security Scanning / security-scan (push) Successful in 31s
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 4s
Documentation Validation / validate-docs (push) Successful in 12s
Documentation Validation / validate-policies-strict (push) Successful in 3s
Integration Tests / test-service-integration (push) Failing after 12s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 10s
Security Scanning / security-scan (push) Successful in 31s
- Add status fields to Receipt model (status, claimed_at, claimed_by) - Add RECEIPT_CLAIM handling to state_transition.py with validation and reward minting - Add type field to Transaction model for reliable transaction type storage - Update router to use TransactionRequest model to preserve type field - Update poa.py to extract type from mempool transaction content and store only original payload - Add RECEIPT_CLAIM to GasType enum with gas schedule
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
description: Atomic AITBC cross-node coordination and messaging operations with deterministic outputs
|
||||
title: aitbc-node-coordinator
|
||||
version: 1.0
|
||||
version: 1.1
|
||||
---
|
||||
|
||||
# AITBC Node Coordinator
|
||||
@@ -134,14 +134,16 @@ Trigger when user requests cross-node operations: synchronization, coordination,
|
||||
- SSH keys located at `/root/.ssh/` for passwordless access
|
||||
- Blockchain nodes operational on both nodes via systemd services
|
||||
- P2P mesh network active on port 7070 with peer configuration
|
||||
- Unique node IDs configured: each node has unique `proposer_id` and `p2p_node_id` in `/etc/aitbc/.env` and `/etc/aitbc/node.env`
|
||||
- Git synchronization configured between nodes at `/opt/aitbc/.git`
|
||||
- CLI accessible on both nodes at `/opt/aitbc/aitbc-cli`
|
||||
- Python venv activated at `/opt/aitbc/venv/bin/python` for CLI operations
|
||||
- Systemd services: `aitbc-blockchain-node.service` on both nodes
|
||||
- Node addresses: genesis (localhost/aitbc), follower (aitbc1)
|
||||
- Systemd services: `aitbc-blockchain-node.service` and `aitbc-blockchain-p2p.service` on both nodes
|
||||
- Node addresses: genesis (localhost/aitbc), follower (aitbc1), gitea-runner
|
||||
- Git remote: `origin` at `http://gitea.bubuit.net:3000/oib/aitbc.git`
|
||||
- Log directory: `/var/log/aitbc/` for service logs
|
||||
- Data directory: `/var/lib/aitbc/` for blockchain data
|
||||
- Node identity utility: `/opt/aitbc/scripts/utils/generate_unique_node_ids.py` for ID generation
|
||||
|
||||
## Error Handling
|
||||
- SSH connectivity failures → Return connection error with affected node, attempt fallback node
|
||||
@@ -150,7 +152,8 @@ Trigger when user requests cross-node operations: synchronization, coordination,
|
||||
- Sync failures → Return partial sync with details, identify which sync type failed
|
||||
- Timeout during operations → Return timeout error with operation details, suggest increasing timeout
|
||||
- Git synchronization conflicts → Return conflict error, suggest manual resolution
|
||||
- P2P network disconnection → Return network error, check mesh network status
|
||||
- P2P network disconnection → Return network error, check mesh network status and node IDs
|
||||
- P2P handshake rejection → Check for duplicate p2p_node_id, run `/opt/aitbc/scripts/utils/generate_unique_node_ids.py`
|
||||
- Service restart failures → Return service error, check systemd logs
|
||||
- Node unreachable → Return unreachable error, verify network connectivity
|
||||
- Invalid target node → Return validation error, suggest valid node names
|
||||
|
||||
Reference in New Issue
Block a user