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

Error adding market funds failed: estimating gas limit: message execution failed #2575

Open
ghost opened this issue Jul 24, 2020 · 2 comments
Labels
area/ux Area: UX kind/bug Kind: Bug

Comments

@ghost
Copy link

ghost commented Jul 24, 2020

Describe the bug
I'm trying to make a storage deal, but I get the error message adding market funds failed: estimating gas limit: message execution failed: exit SysErrSenderStateInvalid(2), reason: actor balance less than needed: 102400 FIL < 1723050.0000000075 FIL (RetCode=2). However, my wallet seems to have sufficient funds.

To Reproduce

$ lotus wallet balance
102400 FIL
$ lotus client import testfile.txt
Import 1, Root bafkqad2imvwgy3zmeb3w64tmmqqqucq
$ lotus client deal bafkqad2imvwgy3zmeb3w64tmmqqqucq t03360 50 30000
bafyreiblp4742qt37hwxzzxpmzqrdjd6pi2rbdhdgdx5enij4eszc2x2ue
$ lotus client list-deals
DealCid                                                      DealId  Provider  State             On Chain?  Slashed?  PieceCID                                                          Size   Price        Duration  Message
bafyreiblp4742qt37hwxzzxpmzqrdjd6pi2rbdhdgdx5enij4eszc2x2ue  0       t03360    StorageDealError  N          N         baga6ea4seaqdxqtlorrcolc6srv4qev46rrgjsr62ankwod36pcwmapb2wlpsny  127 B  1723050 FIL  34461     adding market funds failed: estimating gas limit: message execution failed: exit SysErrSenderStateInvalid(2), reason: actor balance less than needed: 102400 FIL < 1723050.0000000075 FIL (RetCode=2)

Expected behavior
It seems to be saying that I need a huge amount of FIL (1723050.0000000075) to pay the gas costs. This seems like an impossibly large amount for gas, though.

Screenshots
N/A

Version (run lotus version):

$ lotus version
Daemon:  0.4.1+git.190882ee+api0.8.1
Local: lotus version 0.4.1+git.190882ee

I'm using the reset ntwk-calibration branch.

Additional context
None

@ghost
Copy link
Author

ghost commented Jul 24, 2020

Just to add a little context on the miner:

$ lotus client query-ask t03360
Ask: t03360
Price per GiB: 0.0000000005 FIL
Max Piece size: 512 MiB

The min size for this miner is 256 bytes, and the CID I was storing was only 127 bytes. But this message seems like a weird way to fail over a CID size issue.

@ghost
Copy link
Author

ghost commented Jul 24, 2020

Ok, so the explanation is that 1723050.0000000075 is calculated as 50 FIL per epoch * 34461 epochs. Deal works as $ lotus client deal bafk2bzaceduf3gjkyqjmaohz5dg2mg5uvhzdjtczaur6lqkhi6ghkwh6zc5xk t03360 0.0000000005 30000

But leaving open because I think the error message is misleading. Is it really a gas problem?

@ghost ghost closed this as completed Jul 24, 2020
@ghost ghost reopened this Jul 24, 2020
@magik6k magik6k added the ux label Jul 27, 2020
@github-actions github-actions bot removed the ux label Jul 29, 2020
@daviddias daviddias added the kind/bug Kind: Bug label Jul 30, 2020
@arajasek arajasek added the area/ux Area: UX label Aug 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ux Area: UX kind/bug Kind: Bug
Projects
None yet
Development

No branches or pull requests

3 participants