Errors/Chain errors
LeaseHasNotEnded
The required window has not opened yet; wait some blocks and retry
The lease termination was attempted before the lease's end_block was reached. Compare the current block height with the end_block stored in SubnetLeases for the lease id and retry after it passes.
Declared by the SubtensorModule pallet; it classifies to the semantic code too_early.
Remediation
The required window has not opened yet; wait some blocks and retry
The same explanation is available in the terminal: btcli explain LeaseHasNotEnded.