-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Miner accepts deal even if there's not enough collateral in miner to service the deal. #5444
Comments
all that is off chain logic. the funds are needed when the deal gets published and not when accepted or transferred. the miner should initiate an AddBalance message to add funds before the publish deals message - and as far as i know it is doing exactly that if there aren't enough funds to lock for a deal in the market actor for the miner
but still not sure what you mean with "lock funds" the proposal is a storage client side, signed "document" and as soon as he sends it out he has no chance to revert it - that's why his funds should be "locked" when this gets send out. but the miner is not "accepting" the deal before the publish message hits the chain/is created. it's more a "i will have a look at your proposal" than acceptance before the publish message is signed |
a client can always demand the deal to be published before he sends the data. what will happen is that miners will let the client pay for the publish deals message since they do not have the data before paying, right now, ~$6 to get the message on chain. [edit] does the storage client actually have to lock the funds before (in the sense of hard locked in the market actor) before the publish message is on chain - or is it a software side soft lock that just tells him that the funds are locked? how does the chain know that the client created a proposal and send it out? i don't think anyone should need to lock any funds before the "publish deal on chain" step - and i doubt anyone does right now. looking at it the diagram right now: it explicitly puts the "Deal Accepted" step after the deal was published! |
so this is not an implementation problem but a specifications problem of how to define when a deal is accepted and what locked funds are. right now, rightfully, the deal isn't "Accepted" and funds aren't "locked" before both parties have a message with their signature in/on it on chain. if you/we/lotus wants to implement a soft lock on miners market balances before the deal is on chain - feel free to do so, but make it optional. |
It seems like a fix for this issue has been merged into Lotus, so this issue can probably be closed now? #rengjøring |
Merged. Closing ticket. |
v1.4.1
Current behavior: The miner accepts a deal and starts the data transfer. After the data transfer is complete, it checks and aborts the deal because of insufficient funds.
Desired: It would be helpful to issue a warning or check funds before initiating the data transfer if the miner doesn't have the resources to accept the deal.
Open Questions:
The text was updated successfully, but these errors were encountered: