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 #57Emitted when network immunity period is changed.
View events on chainThe 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
Preconditions
- Caller has admin/sudo privileges
Effects
Postconditions
- NetworkImmunityPeriod updated
Side Effects
- New subnets protected for this duration
Event Data
| # | Name | Type | Description |
|---|---|---|---|
| 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
Runtime Info
View Source- Pallet Index
- 7
- Event Index
- 57
- First Version
- v133
- Current Version
- v393