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

Elector sends recovered stake with bounce=true instead of bounce=false #1

Open
talkol opened this issue Mar 16, 2023 · 0 comments
Open

Comments

@talkol
Copy link

talkol commented Mar 16, 2023

The elector currently sends back the stake with bouce=true:

https://github.com/newton-blockchain/ton/blob/b38d227a469666d83ac535ad2eea80cb49d911b8/crypto/smartcont/elector-code.fc#L421

This is not elegant since it's potentially millions of ton and the elector doesn't handle bounced messages. If we somehow reach a weird state that the depositor is frozen, the stake will be lost.

It's not easy to reach a state where the depositor is frozen, because it just sent a transaction to ask to recover state, but still, this should be fixed.

During the next elector update, please consider sending recovered stake with bounce=false, so if the recipient is somehow frozen, it will still be received.

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

No branches or pull requests

1 participant