ColdkeySwapReannouncedTooEarly

Error v385 → v393, v401 → current 7.67

Possibly renamed from FailedToSchedule in v385.

You tried to replace a pending announcement before it became eligible for reannouncement.

Encountered by: stakerswalletsdevelopers

Why This Error Exists

Reannouncing would otherwise let a holder reset the waiting period at will, which would defeat the delay. The reannouncement window bounds how often the destination can move.

Deep Dive

The eligibility block is the announcement tuple when plus ColdkeySwapReannouncementDelay, not the original announcement block plus that delay. A reannouncement through announce_coldkey_swap skips the key swap cost, which that call charges only when no announcement was present. From v482 announce_coldkey_swap_v2 charges KeySwapCost on every call, reannouncements included, because each call renews a destination reservation.

Debugging Example

You announce, immediately realise the destination is wrong, and announce again. The second call fails here. The account stays frozen with the wrong destination pending until the window opens.

Prevention Tips

  • Confirm the destination before announcing, because correcting it is rate limited

From Chain Metadata

Coldkey swap reannounced too early.

What This Means

You tried to replace a pending announcement before it became eligible for reannouncement.

Common Causes

  • Announcing a new destination while the previous announcement is still inside its window
  • Treating announce_coldkey_swap as freely repeatable

How to Fix

  • Wait until the executable block plus ColdkeySwapReannouncementDelay
  • Read both values from storage rather than assuming the genesis defaults

Storage to Check

Thrown By

Version History

v385 block 7,782,670 Added
v401 block 8,036,576 Shape modified Current

Runtime Info

Pallet Index
7
Error Index
67
Error Code
7.67
Runtime Version
v490