-
Notifications
You must be signed in to change notification settings - Fork 177
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
Remove vesting from PreCommitSector and ConfirmSectorProofsValid #18
Comments
More chain throughput (via lower gas usage) sounds great! The slight delay in miner rewards (which can be solved by manually triggering |
Closed by #19 |
Keeping this open as a place for discussion on FIP-0005 |
I think this can be closed now that it's accepted, correct? https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0005.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
Vesting is processed via
State.UnlockVestedFunds
, which is called fromPreCommitSector
,ConfirmSectorProofsValid
,WithDrawBalance
and the deadline cron. The original motivation for computing vesting on sector commitment is so that any vested funds could be used for pre-commit deposit or pledge.The vesting table is quantized to 12-hr increments. Since vesting is processed in the deadline cron every 30 minutes, the calls during sector commitment almost always achieve nothing. The most it could achieve is to accelerate a release by 30 minutes.
Processing reward vesting is quite expensive as it loads and stores a sizeable array for the vesting table. For high-scale miners, committing many sectors per deadline (or even per-epoch), this represents a sizeable portion of total gas cost and chain bandwidth consumption.
Proposal
Remove vesting from
PreCommitSector
andConfirmSectorProofsValid
, leaving it to the deadline cron. If necessary, the miner's owner can trigger vesting viaWithdrawBalance
(possibly with an argument of zero).This will reduce the gas consumption of these methods substantially, freeing up chain bandwidth for other messages, reducing gas costs, and/or improving validation speed.
First proposed in filecoin-project/specs-actors#1258
The text was updated successfully, but these errors were encountered: