Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(nns): Revert spawn state when ledger unavailable and drop lock #3226

Merged
merged 3 commits into from
Jan 2, 2025

Conversation

max-dfinity
Copy link
Contributor

This removes an edge case where a neuron can become locked when the ledger is unavailable during a neuron operation (such as during an upgrade).

If the neuron happens to spawn during a ledger upgrade, the neuron will become locked, and therefore stuck.

@github-actions github-actions bot added the fix label Dec 18, 2024
@max-dfinity max-dfinity marked this pull request as ready for review December 20, 2024 22:56
@max-dfinity max-dfinity requested a review from a team as a code owner December 20, 2024 22:56
@max-dfinity max-dfinity marked this pull request as draft December 20, 2024 22:56
@max-dfinity max-dfinity marked this pull request as ready for review December 30, 2024 19:55
@max-dfinity max-dfinity enabled auto-merge January 2, 2025 19:02
@max-dfinity max-dfinity added this pull request to the merge queue Jan 2, 2025
Merged via the queue into master with commit d19a1b4 Jan 2, 2025
25 checks passed
@max-dfinity max-dfinity deleted the NNS1-3496 branch January 2, 2025 19:25
github-merge-queue bot pushed a commit that referenced this pull request Jan 6, 2025
A neuron was locked, which logged `Inflight commands: {
17912780790050115461: NeuronInFlightCommand { timestamp: 1728911670,
command: Some( Spawn( NeuronId { id: 17912780790050115461, }, ), ), },
}`

We identified the account as:
https://dashboard.internetcomputer.org/account/9765cc69bd6580023bee8fa8280fb630977b9f850da49d73cddcb99512272abb
And the neuron can be seen here:
https://dashboard.internetcomputer.org/neuron/17912780790050115461

As can be seen, no ICP was minted, but the neuron's cached stake was set
and maturity was cleared. The fix is to mint the ICP and unlock the
neuron.

Fix to prevent this from happening in the future is here:
#3226
daniel-wong-dfinity-org pushed a commit that referenced this pull request Jan 7, 2025
A neuron was locked, which logged `Inflight commands: {
17912780790050115461: NeuronInFlightCommand { timestamp: 1728911670,
command: Some( Spawn( NeuronId { id: 17912780790050115461, }, ), ), },
}`

We identified the account as:
https://dashboard.internetcomputer.org/account/9765cc69bd6580023bee8fa8280fb630977b9f850da49d73cddcb99512272abb
And the neuron can be seen here:
https://dashboard.internetcomputer.org/neuron/17912780790050115461

As can be seen, no ICP was minted, but the neuron's cached stake was set
and maturity was cleared. The fix is to mint the ICP and unlock the
neuron.

Fix to prevent this from happening in the future is here:
#3226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants