Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
First draft of FIP-0074: Remove cron-based automatic deal settlement #805
First draft of FIP-0074: Remove cron-based automatic deal settlement #805
Changes from all commits
c1d4ea8
5e0bee8
b34e2a3
167c664
1a4d9e1
2afe909
1c854d1
e6a9b1a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to use upper camel casing for fields instead of the Rust convention, since this seems to be Rust pseudo-code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not Rust, just pseudocode. I've used camel casing (and
[]array
) for all my FIPs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peer review: should mention impact on Filecoin market implementations. They now need to offer functionality to manually trigger settlement, whereas previously they could rely on the network doing that for them automatically. This implies downstream functional change. cc @dirkmc @nonsense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The last sentence does not that SPs who host deals need to change, I'll expand it a little to point out that this implies software changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I presume when SPs do have deal payments to settle, the gas costs of triggering settlement will be very small (~a normal send?) such that the payout is (almost) always more than the gas needed to trigger it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to question -- had the same thought and wondered if you considered (and rejected) gas refunds? If yes, it might be worth capturing the rationale here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, deal settlement is relatively expensive (which is why this is a risk to network stability). I have now made an estimate of the cost based on the cost of cron doing similar work. Settlement is about half as expensive as publishing a deal. This is the cost of on-chain payments in the very inefficient implementation in the built-in market actor.
I will add this estimate to incentive considerations. I will also add consideration of gas refunds to the design rationale. I do not think they are a good idea.