-
Notifications
You must be signed in to change notification settings - Fork 142
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
feat: slim down shared #1986
feat: slim down shared #1986
Conversation
db98818
to
0e02830
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1986 +/- ##
===========================================
- Coverage 75.52% 60.37% -15.16%
===========================================
Files 158 116 -42
Lines 15600 10568 -5032
===========================================
- Hits 11782 6380 -5402
- Misses 3818 4188 +370
|
0e02830
to
ab50ad1
Compare
IIRC, this was in draft pending merging stuff in the built-in actors, but we might as well merge it now. |
- `BLOCK_GAS_LIMIT`: Neither the FVM nor the builtin actors care about the block gas limit. And if they did, it would have to be a runtime parameter passed from the client. - `EPOCH_DURATION_SECONDS`: Different networks may have different block times, this constant is useless. - `math`, `reward`, `smooth`: part of the reward actor calculations, not relevant to the FVM itself (moved to the builtin actors). - `TOTAL_FILECOIN`, `TOTAL_FILECOIN_BASE`: Network parameter, not a concern of the FVM. - `BLOCKS_PER_EPOCH`: protocol parameter, moved to the builtin actors. - `MAX_SECTOR_NUMBER`: moved to the builtin actors. - `Spacetime`, `SectorQuality`: moved to the builtin actors. - `ZERO_ADDRESS`, `*_LOOKBACK`, `ALLOWABLE_CLOCK_DRIFT`, `NetworkParams`, `DefaultNetworkParams`: unused.
ab50ad1
to
7dcd7b9
Compare
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.
seems fine to me, I can't find these referenced in builtin-actors, my only question is about the blockgaslimit
BLOCK_GAS_LIMIT
: Neither the FVM nor the builtin actors care about the block gas limit. And if they did, it would have to be a runtime parameter passed from the client.EPOCH_DURATION_SECONDS
: Different networks may have different block times, this constant is useless.math
,reward
,smooth
: part of the reward actor calculations, not relevant to the FVM itself (moved to the builtin actors).TOTAL_FILECOIN
,TOTAL_FILECOIN_BASE
: Network parameter, not a concern of the FVM.BLOCKS_PER_EPOCH
: protocol parameter, moved to the builtin actors.MAX_SECTOR_NUMBER
: moved to the builtin actors.Spacetime
,SectorQuality
: moved to the builtin actors.ZERO_ADDRESS
,*_LOOKBACK
,ALLOWABLE_CLOCK_DRIFT
,NetworkParams
,DefaultNetworkParams
: unused.