Skip to content

Algokit dispenser stops working after localnet round 30,000 #458

@tasosbit

Description

@tasosbit

Update: This is related to the method algokit-utils-ts uses to find the dispenser account. It utilizes the Online attribute, which on localnet "disappears" after round 30,000.


We initially encountered this while developing Algoland, where we wanted an extended test suite to run with thousands of accounts participating in the VRF draw.

After a certain number of accounts (6-8K on my machine), localnet.context.generateAccount() fails:

Error retrieving LocalNet dispenser account; couldn't find the default account in KMD

The dispenser account seems to be lost after this, as all tests will fail immediately with the same error.

I have a simple repro repo here where the tests try to generate 20K accounts.

I'm not familiar enough with KMD (or how algokit uses it) to investigate what exactly got stuck

FYI this is not a blocker atmo, as we circumvented algokit-utils / KMD entirely for the algoland use case - we generate accounts with algosdk and store mnemonics in-memory. Thought to report as this will likely surface for other users as well

Not certain if this is the right repo to open in, feel free to move or ask me to recreate if it is in the wrong place

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions