specs
specs copied to clipboard
Late PoSt and temporary sector failure fee calculations
The actor spec contains placeholders for the late fee and temporary sector failure fee.
The late fee needs to become a function of the miner's sector size, which determines its proving and generation attack periods, and constructed such that the maximum penalty is clearly less than or equal to the miner's total pledge collateral. Since this total pledge collateral is dynamic, the late fee might also be a function of block height. Alternative phrasings such as expressing the fee as a fraction of ~storage~pledge collateral, rather than absolute amount, might be more clear.
Similarly for the temporary sector failure fee, it needs to scale with dynamic pledge collateral.
While various coefficients in these functions can be determined later, it would be helpful for the shape of these functions to reflect our intentions. This is a follow-up to some improvements made in #312. These fees need to be computed by the miner submitting a PoSt, which we can't implement until the inputs to that calculation are clear.
cc @decentralion
Alternative phrasings such as expressing the fee as a fraction of storage collateral, rather than absolute amount, might be more clear.
Do you mean a fraction of pledge collateral?
@anorth Sounds like you're looking for specific numbers? If so, we will probably finalize these in testnet
Do you mean a fraction of pledge collateral?
Yes.
Sounds like you're looking for specific numbers
No, but I am seeking specific formulae, where the numbers can change later. These formulae must guarantee that fees are <= the miner's pledge collateral. Something like #325 is a perfect level of detail.
Go-filecoin is blocked on implementing these fee calculations so that a miner can calculate and pay them.
@whyrusleeping @decentralion Do we know what these functions will be?
@whyrusleeping @decentralion Let’s get these formulae to dev team asap! Thanks :)
On Tue, Jun 11, 2019 at 7:06 PM Alex North [email protected] wrote:
Do you mean a fraction of pledge collateral?
Yes.
Sounds like you're looking for specific numbers
No, but I am seeking specific formulae, where the numbers can change later. These formulae must guarantee that fees are <= the miner's pledge collateral. Something like #325 https://github.com/filecoin-project/specs/pull/325 is a perfect level of detail.
Go-filecoin is blocked on implementing these fee calculations so that a miner can calculate and pay them.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/filecoin-project/specs/issues/328?email_source=notifications&email_token=ABLH2S4VCUIIZ27T4NOHUWDP2BK3NA5CNFSM4HTO76YKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXPA6XQ#issuecomment-501092190, or mute the thread https://github.com/notifications/unsubscribe-auth/ABLH2S7ACLWFPES3OSLBGG3P2BK3NANCNFSM4HTO76YA .
While the spec leaves these undefined go-filecoin will implement each fee as a fraction of total pledge collateral, linear in the thing being penalised:
- fault fee as the number of failed sectors as a fraction of the proving set
- late fee the number of rounds late as a fraction of the generation attack grace period.
The total fee will be capped at the total pledge collateral. These are probably too harsh, and I can imagine a slower ramp may be desirable long term.