Skip to content

Commit

Permalink
revert window to 4032 and fix tortose replay test (#5658)
Browse files Browse the repository at this point in the history
10000 takes to much time to load, i will have to look for another solution to make sync work in those layers.
and it uncovers some other bug with loading atxs, but it is safe just to revert back.
  • Loading branch information
dshulyak committed Mar 8, 2024
1 parent c8452e7 commit 589c5c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func MainnetConfig() Config {
Tortoise: tortoise.Config{
Hdist: 10,
Zdist: 2,
WindowSize: 10000,
WindowSize: 4032,
MaxExceptions: 1000,
BadBeaconVoteDelayLayers: 4032,
MinimalActiveSetWeight: []types.EpochMinimalActiveWeight{
Expand Down
6 changes: 5 additions & 1 deletion tortoise/replay/replay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,14 @@ func TestReplayMainnet(t *testing.T) {
require.NoError(t, err)

start := time.Now()
atxsdata, err := atxsdata.Warm(db,
atxsdata.WithCapacityFromLayers(cfg.Tortoise.WindowSize, cfg.LayersPerEpoch),
)
require.NoError(t, err)
trtl, err := tortoise.Recover(
context.Background(),
db,
atxsdata.New(),
atxsdata,
clock.CurrentLayer(), opts...,
)
require.NoError(t, err)
Expand Down

0 comments on commit 589c5c3

Please sign in to comment.