NetworkImmunityPeriodSet

Event Re-added v133 → v133, v134 → v135, v136 → v141, v142 → v148, v149 → v165, v195 → v219, v233 → v247, v252 → v265, v273 → v277, v290 → v315, v320 → v326, v334 → current #57

Emitted when network immunity period is changed.

View events on chain
Useful for: subnet ownersdevelopersanalyticsvalidators

The Big Picture

New subnets get an immunity period - time during which they can't be dissolved for poor performance. This gives subnet owners time to build their ecosystem without immediate pressure. Longer immunity means more breathing room; shorter immunity means faster quality enforcement.

Why This Matters

If you're creating a subnet, immunity period is your safety window. During this time, you can build your validator/miner base without fear of dissolution. After immunity ends, your subnet must perform or risk being replaced. Plan your launch timeline accordingly.

Example Scenario

Network immunity was 7 days. To give subnet creators more runway, it's increased to 30 days. NetworkImmunityPeriodSet fires. New subnets now have a full month to establish themselves before facing performance scrutiny. Less pressure on subnet owners during launch.

Common Questions

Does this affect existing subnets?
Only if they're still in their immunity period. Subnets past immunity are unaffected. New subnets get the new duration.
What happens after immunity ends?
The subnet is subject to normal governance - if it underperforms, it can be dissolved to make room for better subnets. Performance now matters.
Can immunity be extended for individual subnets?
The network-wide parameter sets the default. Individual extensions would require governance or admin intervention.

Use Cases

  • Track new subnet protection periods
  • Plan subnet launch timelines
  • Monitor network governance policies
  • Build subnet lifecycle planning tools

How to Use This Event

  • Track immunity period for subnet planning
  • Monitor governance changes affecting subnet launches
  • Build subnet timeline forecasting tools

From Chain Metadata

the network immunity period is set.

Triggers

Effects

Postconditions

  • NetworkImmunityPeriod updated

Side Effects

  • New subnets protected for this duration

Event Data

#NameTypeDescription
0
arg0
u64 Event field #0 (u64)

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Subscribe to NetworkImmunityPeriodSet events
api.query.system.events((events) => {
  events
    .filter(({ event }) =>
      event.section === stringCamelCase("SubtensorModule") &&
      event.method === "NetworkImmunityPeriodSet"
    )
    .forEach(({ event }) => {
      console.log("NetworkImmunityPeriodSet:", event.data.toHuman());
    });
});

Version History

v133 block 1,404,224 1 args
v134 block 1,455,498 1 args
v136 block 1,756,781 1 args
v142 block 2,543,779 1 args
v149 block 3,014,339 1 args
v195 block 3,791,350 1 args
v233 block 4,920,350 1 args
v252 block 5,163,656 1 args
v273 block 5,659,032 1 args
v290 block 5,947,548 1 args
v320 block 6,523,566 1 args
v334 block 6,811,690 1 args Current

Runtime Info

View Source
Pallet Index
7
Event Index
57
First Version
v133
Current Version
v393