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

Merged
merged 1 commit into from
Apr 2, 2025
Merged

feat: slim down shared #1986

merged 1 commit into from
Apr 2, 2025

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

@Stebalien Stebalien requested a review from fridrik01 February 12, 2024 16:38
@Stebalien Stebalien marked this pull request as ready for review April 1, 2025 23:21
@Stebalien Stebalien requested a review from rvagg April 1, 2025 23:21
@Stebalien
Copy link
Member Author

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.
@Stebalien Stebalien force-pushed the steb/reduce-shared branch from ab50ad1 to 7dcd7b9 Compare April 1, 2025 23:23
@Stebalien Stebalien removed the request for review from fridrik01 April 1, 2025 23:23
Copy link
Member

@rvagg rvagg left a 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

@Stebalien Stebalien merged commit 080ff67 into master Apr 2, 2025
15 checks passed
@Stebalien Stebalien deleted the steb/reduce-shared branch April 2, 2025 00:39
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.

3 participants