Skip to content

remove pallet-ip from runtime and delete unused pallets from repo - #89

Open
faizsarwar wants to merge 1 commit into
mainfrom
chore/remove-ip-and-unused-pallets
Open

faizsarwar wants to merge 1 commit into
mainfrom
chore/remove-ip-and-unused-pallets

Conversation

@faizsarwar

Copy link
Copy Markdown
Collaborator

Summary

Removes pallet-ip from the runtime and deletes pallets and precompiles that are no longer in the chain but were still in the repo. This is a runtime upgrade: spec_version goes from 92023 to 92024.

Runtime changes

  • Removed PalletIp (index 74) from construct_runtime!, along with its Config impl. Index 74 is left unused, so no other pallet's index shifts.
  • Added migrations::RemovePalletIp and wired it into Migrations. It uses frame's RemovePallet, which clears the hashed storage prefix twox128("PalletIp"). It does nothing once the prefix is empty, so it is safe to leave in until the next upgrade.
  • Removed four methods from the NodeMetricsRuntimeApi trait, the RPC core and impl, and the README: get_client_ip, get_hypervisor_ip, get_vm_ip and get_storage_miner_ip.
  • pallet-credits no longer depends on pallet-ip. Minting credits no longer assigns a client IP.
  • pallet-alpha-bridge drops pallet-ip from its test mock.

Repo-only cleanup (no chain impact)

  • Deleted pallets: ipfs, backup, notifications and subAccounts were already out of the runtime.
  • Deleted precompiles: sub-accounts, notifications and ipfs-pin.
  • Also deleted: pallets/compute and pallets/containerRegistry. They aren't in the runtime, but they depend on the removed crates (compute on ip and subAccounts, containerRegistry on ipfs), so the workspace wouldn't build without removing them.
  • Manifests: removed the matching entries, including commented-out lines, from the root, runtime, credits, alpha-bridge, markeCargo.toml files, and updated Cargo.lock.

Breaking changes

  • The four IP RPCs above are gone. Any client calling them will get an error.
  • Credits minting no longer assigns an IP.

Testing

  • cargo check passes with tests for hippius-mainnet-runtime, pallet-credits, pallet-alpha-bridge, hippius (node), rpc-node-metrics and rpc-core-node-metrics.
  • pallet-credits tests pass. pallet-alpha-bridge has 76 passing and 1 failing: test_propose_staking_reward_transfer_not_guardially on unmodified main.
  • cargo check --workspace fails inside the sp-runtime-interface dependency in the local environment, so the affected crates were checked individually.
  • Not done: try-runtime against live state and a wasm build.

Before deploying

  • Run try-runtime on-runtime-upgrade against a mainnet snapshot. Check the number of PalletIp keys cleared and the migratiup runs in a single block.
  • Confirm nothing external (frontend, scripts, indexers) calls the removed IP RPCs or expects an IP to be assigned on credits minting.

Runtime:
- Remove PalletIp (index 74) from construct_runtime and its Config impl.
- Add migrations::RemovePalletIp (frame RemovePallet, hashed prefix) to clear
  its leftover storage; wired into Migrations.
- Drop get_client_ip/get_hypervisor_ip/get_vm_ip/get_storage_miner_ip from the
  NodeMetrics runtime API, RPC core/impl and README.
- Bump spec_version 92023 -> 92024.

Pallets:
- credits: no longer depends on pallet-ip; mint no longer assigns a client IP.
- alpha-bridge: drop pallet-ip from test mock.

Repo cleanup (not in runtime): delete pallets ip, ipfs, backup, notifications,
subAccounts, plus compute and containerRegistry (dead, depended on the removed
crates) and precompiles sub-accounts, notifications, ipfs-pin.
@faizsarwar faizsarwar self-assigned this Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant