Datacap timing #5660
-
Have a couple questions when making offline verified deals with folks
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I think ideally the datacap should be "locked" upon proposing the deal, not when the deal is published. |
Beta Was this translation helpful? Give feedback.
-
@kernelogic its detuced here https://github.com/filecoin-project/specs-actors/blob/845089a6d2580e46055c24415a6c32ee688e5186/actors/builtin/market/market_actor.go#L254 |
Beta Was this translation helpful? Give feedback.
-
@kernelogic the deal is totally offchain until it is published. locking up the data cap before hand would be a soft lock on the client side only and there would be no way for a miner to test if the cap is locked or not. if we lock it a miner could, kind of, hold the datacap hostage by not publishing it if we do not implement a "reverse the lock" command (it isn't locked anyways since the chain doesn't know about it) a miner needs to take care of not publishing already taken data caps! the current miner deal handling logic seems not to take care of that - maybe we should start an issue. [edit] there is already an issue in the pipeline for that, i closed mine |
Beta Was this translation helpful? Give feedback.
fixed https://github.com/filecoin-project/go-fil-markets/blob/32f7f2ed36dcb71473812905d0[…]7ee077d824/storagemarket/impl/providerstates/provider_states.go