Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

trying to reduce window periods #595

Closed
wants to merge 3 commits into from

Conversation

nonsense
Copy link
Member

@nonsense nonsense commented Jul 3, 2020

An attempt to reduce the various periods in specs-actors, so that we can test various behaviours in Project Oni, without having to wait for thousands of epochs.

There has been some success when reducing the WPoStProvingPeriod to 360 and WPoStChallengeWindow to 10, but it is not yet clear if this introduces other issues.

In the future we will probably also want to reduce FaultMaxAge


I also considered changing consts to vars, but this is not possible, since we allocate arrays with const sizes. I am not aware of any other way to change these, but to introduce build flags, similar to what we already did on Lotus side (for example https://github.com/filecoin-project/lotus/blob/master/build/params_testground.go)


Related: filecoin-project/oni#12

cc @raulk

Jakub Sztandera added 2 commits June 17, 2020 19:54
It will be used in the current effort of setting sane values for gas.

Virtual gas is added for observing how changes to gas numbers affect
the balance without affecting the stateroot of the chain.

Signed-off-by: Jakub Sztandera <[email protected]>
Signed-off-by: Jakub Sztandera <[email protected]>
@nonsense nonsense force-pushed the reduce-wpostprovingperiod-consts branch from 068f482 to fef6656 Compare July 3, 2020 20:02
@codecov-commenter
Copy link

codecov-commenter commented Jul 3, 2020

Codecov Report

Merging #595 into master will increase coverage by 0.02%.
The diff coverage is 62.50%.

@@            Coverage Diff             @@
##           master     #595      +/-   ##
==========================================
+ Coverage   43.22%   43.25%   +0.02%     
==========================================
  Files          40       40              
  Lines        4393     4400       +7     
==========================================
+ Hits         1899     1903       +4     
- Misses       2214     2216       +2     
- Partials      280      281       +1     

@anorth
Copy link
Member

anorth commented Jul 19, 2020

@nonsense could we close this PR? My impression is that there's no intention of this going into master, and it now seems unmaintained. You can still have the branch, of course.

@nonsense
Copy link
Member Author

@anorth sure, I will close it.

Depending on how well our tests work with filecoin-project/oni#143 (mock time), we might be able to use the production windows (deadlines). For now I continue to override the deadlines, but I don't need an open PR for that!

@nonsense nonsense closed this Jul 20, 2020
@nonsense nonsense deleted the reduce-wpostprovingperiod-consts branch July 20, 2020 07:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants