feat: implement MESSAGE transaction type and re-enable state root computation
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 5s
Integration Tests / test-service-integration (push) Failing after 13s
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 38s

- Add MESSAGE transaction type to router.py valid_types
- Add MESSAGE handling to state_transition.py (value=0, fee-only)
- Add GasType.MESSAGE to gas schedules
- Re-enable state root computation in poa.py
- Change SQLite journal_mode to WAL for corruption prevention
- Add chattr +C to setup.sh for Btrfs CoW prevention
This commit is contained in:
aitbc
2026-04-22 13:06:01 +02:00
parent 054adaf7be
commit a6a840a930
5 changed files with 146 additions and 37 deletions

View File

@@ -17,6 +17,10 @@ class GasType(Enum):
VALIDATOR_STAKE = "validator_stake"
AGENT_OPERATION = "agent_operation"
CONSENSUS = "consensus"
MESSAGE = "message"
RECEIPT_CLAIM = "receipt_claim"
GPU_MARKETPLACE = "gpu_marketplace"
EXCHANGE = "exchange"
@dataclass
class GasSchedule:
@@ -91,6 +95,12 @@ class GasManager:
base_gas=80000,
gas_per_byte=0,
complexity_multiplier=1.0
),
GasType.MESSAGE: GasSchedule(
gas_type=GasType.MESSAGE,
base_gas=21000,
gas_per_byte=0,
complexity_multiplier=1.0
)
}