Skip to content
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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

feat: slim down shared #1986

wants to merge 1 commit into from

Conversation

Stebalien
Copy link
Member

  • 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.

Base automatically changed from steb/remove-address-lazystatic to master February 9, 2024 16:37
@codecov-commenter
Copy link

codecov-commenter commented Feb 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5cd204d) 75.52% compared to head (0e02830) 60.37%.

Additional details and impacted files

Impacted file tree graph

@@             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     
Files Coverage Δ
fvm/src/machine/mod.rs 77.27% <100.00%> (+0.71%) ⬆️
shared/src/lib.rs 0.00% <ø> (-47.62%) ⬇️
shared/src/sector/mod.rs 0.00% <ø> (ø)

... and 78 files with indirect coverage changes

- `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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants