mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
## 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> |
||
|---|---|---|
| .. | ||
| governance | ||
| common.rs | ||
| lib.rs | ||
| migrations.rs | ||
| native_token_transfer.rs | ||
| proxy.rs | ||
| treasury.rs | ||