-
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
'CollateralFromMinerBalance=false' does not work for ProveReplicaUpdates3 #12014
Comments
@LexLuthr And got this: |
@hyunmoon That was a bit unexpected. Any chance you can run one more test but this time add the log after each code line which changes collateral? |
https://filfox.info/en/message/bafy2bzacecj3oycep5tn5llcdfoayls3v2kinixihc2ch4euyiwao2pbzar3y?t=1 |
@hyunmoon I don't see collateral being subtracted from miner balance. Can you point me to that for the above message? |
@LexLuthr Notice the 3rd transaction tranfsers balance from the worker wallet to the miner. The most straight forward way to tell if the balance has been spent from the miner balance is looking at the message's value on filfox. |
@hyunmoon That is not entirely correct. What if required collateral itself is 0. Which seems to be the case in our logs. We calculate initial value for collateral but then we compare it to what we already paid for CC sector and it comes out we have already paid the difference. So, we are not sending the collateral anymore. If your miner balance is still deducted then either the subtraction of previously paid collateral is incorrect or original calculated collateral is too low. Can you confirm a case where this was deducted? |
@LexLuthr As I am onboarding verified deals, additional collateral is always needed. I believe the current code for ProveReplicaUpdates3 is missing the compensation mechanism before spending the collateral. However, a ProveReplicaUpdates3 message (see here: Filfox message link) would not send anything from the worker to the miner, even if CollateralFromMinerBalance is set to false. |
It is not the method. The calculation of how much collateral is required has to be incorrect part. Sending mechanism is not unique to this method. I think we are calculating incorrect collateral in the first place. Let me check with @magik6k about the code that runs the calculations. It was changed for NV22. |
Hey @hyunmoon! I´m wondering if you have seen this issue recently? Reason for asking, is because filecoin-project/go-state-types#291 which has been merged and bubbled up to Lotus for quite some time now, could have fixed this - but we need a clear signal before closing. |
Checklist
Latest release
, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.Lotus component
Lotus Version
Repro Steps
Describe the Bug
https://filecoinproject.slack.com/archives/CPFTWMY7N/p1714914337529209
ProveReplicaUpdates3 does not obey the 'CollateralFromMinerBalance=false' parameter in lotus-miner's config.
It will always spend collateral from the miner's available balance unlike ProveCommitSector.
Attaching @LexLuthr's comment on Slack:
Logging Information
The text was updated successfully, but these errors were encountered: