datahaven/operator/runtime/common/src
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
..
benchmarking.rs feat: Add Treasury 💰 pallet to DataHaven runtimes (#98) 2025-06-25 08:09:26 +02:00
constants.rs feat(operator): Add external validators Pallet (#65) 2025-05-14 11:05:07 +02:00
deal_with_fees.rs feat: Add Treasury 💰 pallet to DataHaven runtimes (#98) 2025-06-25 08:09:26 +02:00
impl_on_charge_evm_transaction.rs feat: Add Treasury 💰 pallet to DataHaven runtimes (#98) 2025-06-25 08:09:26 +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