fix(nodectl): send process_withdraw_requests with 1 TON and limit 10#161
Merged
mrnkslv merged 1 commit intoMay 20, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Tunes TONCore nominator withdraw-drain behavior in the elections runner to avoid process_withdraw_requests running out of gas and blocking subsequent stake submission.
Changes:
- Increase the attached value for
process_withdraw_requestsfrom 0.5 TON to 1 TON. - Reduce the per-call withdraw processing limit from 100 to 10 to keep execution within gas constraints.
- Update nodectl documentation to reflect the new op=2 parameters (limit=10, message value=1 TON).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
src/node-control/service/src/elections/runner.rs |
Adjusts withdraw processing constants and updates inline docs to match the new gas/limit tuning. |
src/node-control/README.md |
Updates operator-facing docs to reflect the new TONCore withdraw-drain parameters. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| const WITHDRAW_PROCESS_LIMIT: u8 = 100; | ||
| /// Gas attached to `process_withdraw_requests` (TONCore op = 2). Must cover compute for | ||
| /// `load_data` + dict iteration + payouts + `save_data`; 0.5 TON was too low (exit -14 on | ||
| /// masterchain). Empirically ~0.9 TON gasFees for limit=10 on singlehost; 1 TON leaves margin. |
Keshoid
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(nodectl): send process_withdraw_requests with 1 TON and limit 10
Summary
Tune TONCore op=2 withdraw drain in the elections runner: attach 1 TON from
the validator wallet and process up to 10 requests per tick. The previous
0.5 TON + limit=100 combination aborted with exit -14 (out of gas) on
singlehost, leaving the withdraw queue stuck and blocking stake.
Changes
100 → 10; refresh inline docs for both constants.
TONCore withdraw-before-stake section.