cycles-management: add pitfall for icp cycles transfer vs icp canister top-up#238
cycles-management: add pitfall for icp cycles transfer vs icp canister top-up#238joozzed wants to merge 1 commit into
Conversation
icp cycles transfer moves cycles between cycles-ledger balances (like a token transfer). Pointing it at a canister's principal credits that principal's ledger balance, not the canister's execution/compute cycle balance -- canister status shows no change and the canister keeps burning toward freezing. icp canister top-up is the correct command. Adds evaluations/cycles-management.json (new) with 2 output evals and trigger evals covering this distinction.
|
Thank you for contributing! Unfortunately this repository does not accept external contributions yet. We are working on enabling this by aligning our internal processes and our CI setup to handle external contributions. However this will take some time to set up so in the meantime we unfortunately have to close this Pull Request. We hope you understand and will come back once we accept external PRs. — The DFINITY Foundation |
|
Hey @joozzed, thanks for the contribution! I will check this on Monday and see if we can open the repo for external contributions. |
|
Thank you for contributing! Unfortunately this repository does not accept external contributions yet. We are working on enabling this by aligning our internal processes and our CI setup to handle external contributions. However this will take some time to set up so in the meantime we unfortunately have to close this Pull Request. We hope you understand and will come back once we accept external PRs. — The DFINITY Foundation |
Summary
cycles-management:icp cycles transfercredits the recipient's cycles-ledger balance, not a canister's execution/compute cycle balance — pointing it at a canister principal silently fails to fund the canister, with no error and no visible change inicp canister status.evaluations/cycles-management.json(did not previously exist) with 2 output evals and trigger evals covering this distinction.Found via a real incident: made this exact mistake twice in a row against a live mainnet canister before realizing
icp canister top-upwas the correct command.Test plan
npm run validate— 26 skills validated, all passed, no new warningsEval 1: Top up a mainnet canister
Eval 2: Cycles transfer does not fund a canister
Trigger evals