datahaven/operator/runtime/mainnet/tests
Ahmad Kaouk eb94be1e3f
feat: multi block migration pallet (#180)
## Overview

This PR integrates Substrate's `pallet-migrations` into all DataHaven
runtimes (mainnet, stagenet, testnet) to enable robust multi-block
migration capabilities. This infrastructure allows complex runtime
upgrades to be executed across multiple blocks while maintaining chain
stability and providing governance controls.

## What Changed

### Core Integration
- **Added `pallet-migrations` dependency** across all runtime
configurations
- **Integrated migration pallet** as pallet index 39 in all runtimes  
- **Created shared migration configuration** in
`datahaven-runtime-common`

### Runtime Configuration
- **Mainnet, Stagenet, and Testnet** now include identical migration
configurations
- **MaxServiceWeight** parameter set to 75% of max block weight for safe
migration execution
- **Migration cursor limits** configured (65KB max cursor, 256B max
identifier)
- **Failure handling** configured to freeze the chain on migration
failures (similar to Moonbeam's maintenance mode)

## Future Work

- [ ] Add custom failure handler (safe mode) to replace chain freeze
- [ ] Generate DataHaven-specific benchmarks for migration weights

---------

Co-authored-by: undercover-cactus <lola@moonsonglabs.com>
2025-09-24 12:27:44 +02:00
..
governance feat: Add proxy Precompile (#155) 2025-09-12 09:45:26 +02:00
common.rs feat: Implement Moonbeam-style OpenGov governance (#131) 2025-09-02 22:46:35 +02:00
lib.rs feat: multi block migration pallet (#180) 2025-09-24 12:27:44 +02:00
migrations.rs feat: multi block migration pallet (#180) 2025-09-24 12:27:44 +02:00
native_token_transfer.rs feat: Standardize currency system to HAVE token with Wei-based units (#130) 2025-08-18 13:26:30 +02:00
proxy.rs feat: Add proxy Precompile (#155) 2025-09-12 09:45:26 +02:00
treasury.rs feat: Implement Moonbeam-style OpenGov governance (#131) 2025-09-02 22:46:35 +02:00