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

Not try to send messages from addresses with 0 balance. #3749

Closed
jennijuju opened this issue Sep 10, 2020 · 1 comment
Closed

Not try to send messages from addresses with 0 balance. #3749

jennijuju opened this issue Sep 10, 2020 · 1 comment

Comments

@jennijuju
Copy link
Member

A miner was trying to perform a lotus-miner actor withdraw with miner available balance being 3 FIL and worker address = 0 and got ERROR: GasEstimateMessageGas error: estimating gas used: message execution failed: exit SysErrSenderStateInvalid(2), reason: actor balance less than needed: 0 FIL < 0.00000101 FIL (RetCode=2)

We think the issue was b/c the first message is sent by worker address and in this case, gas cannot be paid with 0 FIL worker.

The error message is a little bit misleading here. Also, @arajasek suggested that we should improve our ux to not even try to send messages from addresses with 0 balance.

@arajasek
Copy link
Contributor

arajasek commented Nov 9, 2020

Digging a little further, it looks like we already do have this check (the checkBalance method), it's just that the GasEstimateMessageGas check gets triggered and fails first. I think that's fine, a change isn't needed here.

@arajasek arajasek closed this as completed Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants