Skip to content

Conversation

@thewhaleking
Copy link
Contributor

@thewhaleking thewhaleking commented Nov 17, 2025

  1. Ensures that net_claimable is always a Balance object in get_claimable_stakes_for_coldkey
  2. Checks that the HK owner isn't the genesis address
  3. Some name shadowing
  4. Clearly show the totals in st list as representing staked vs total incl free
  5. Prevents a race condition from asi:
  • AsyncSubstrateInterface has an automatic shutdown timer for the websocket, which is intended to shut down the connection after it's finished being used. However, this is by default set to 5 seconds. What was happening is that it was taking people ~5 seconds to notice the prompt and type in their password, which was scheduling the closing of the connection. However, because the password typing is through the Rust console, the asyncio loop was essentially getting paused. When the user finished typing their password, the request was getting sent to the queue, but the scheduled shutdown would hit immediately afterward, thus preventing it from automatically reconnecting.
  • This was hidden because in 1.5.9 and previous, the automatic ws shutdown timer wasn't working correctly (I had accidentally used a double negative if not x != y), so it was never triggering

@thewhaleking thewhaleking requested a review from a team November 17, 2025 12:22
@thewhaleking thewhaleking merged commit 757db79 into staging Nov 17, 2025
68 checks passed
@thewhaleking thewhaleking deleted the fix/thewhaleking/2025-11-17-fixes branch November 17, 2025 17:32
This was referenced Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants