datahaven/operator/runtime
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
..
common feat: multi block migration pallet (#180) 2025-09-24 12:27:44 +02:00
mainnet feat: multi block migration pallet (#180) 2025-09-24 12:27:44 +02:00
stagenet feat: multi block migration pallet (#180) 2025-09-24 12:27:44 +02:00
testnet feat: multi block migration pallet (#180) 2025-09-24 12:27:44 +02:00
README.md feat(operator): Add Ethereum RPCs (#55) 2025-04-30 17:01:21 +00:00

Release

Polkadot SDK stable2412