EpochSkipped

Event v423 → v424, v432 → v440, v441 → current #138

Epoch execution skipped by `is_epoch_input_state_consistent` returned false or other errors.

View events on chain

From Chain Metadata

Epoch execution skipped by `is_epoch_input_state_consistent` returned false or other errors.

Part of: Epoch Processing

Migration Notes

v424 v432 Breaking

netuid changed from u16 to NetUid

Update decoders: SCALE encoding is positional, so any signature change (added, removed, or type-changed fields, or storage shape changes) shifts byte offsets and existing decoders will misparse this item. Re-derive types from the new metadata.

Event Data

#NameTypeDescription
0
netuid
NetUid netuid: Subnet ID (u16, 0-65535)
1
block
u64 block (u64) (RAO -> TAO (/ 10^9))

Code Examples

import { createClient, Binary } from "polkadot-api";
import { getWsProvider } from "polkadot-api/ws";
import { sub } from "@polkadot-api/descriptors"; // generated by: npx papi add sub -w wss://entrypoint-finney.opentensor.ai:443

const client = createClient(getWsProvider("wss://entrypoint-finney.opentensor.ai:443"));
const api = client.getTypedApi(sub);

// Subscribe to EpochSkipped events
client.finalizedBlock$.subscribe(async (block) => {
  const events = await api.event.SubtensorModule.EpochSkipped.get(block.hash);
  for (const evt of events) {
    console.log("EpochSkipped:", evt.payload);
  }
});

Version History

v423 block 8,486,593 2 args
v432 block 8,636,190 2 args
v441 block 8,765,683 2 args Current

Runtime Info

View Source
Pallet Index
7
Event Index
138
First Version
v423
Current Version
v472