Skip to content

Commit

Permalink
🔧 increase preconf receive window
Browse files Browse the repository at this point in the history
  • Loading branch information
cairoeth committed Mar 25, 2024
1 parent 9994a05 commit e1d6afa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ run-operator:

# Run anvil with prepared state
run-anvil:
anvil --load-state contracts/anvil-state.json
anvil --load-state contracts/anvil-state.json --silent

# Run all components concurrently
run-all:
Expand Down
2 changes: 1 addition & 1 deletion preconf-share/preconshare/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (m *API) SendRequest(ctx context.Context, request SendRequestArgs) (_ SendR
}

// sleep a bit to check if request was preconfirmed
time.Sleep(500 * time.Millisecond)
time.Sleep(1000 * time.Millisecond)

// get preconf
block, signature, _, err := m.bundleStorage.GetPreconfByMatchingHash(ctx, matchingHash)
Expand Down
6 changes: 3 additions & 3 deletions preconf-share/preconshare/sim_result_backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ func (s *SimulationResultBackend) SimulatedBundle(ctx context.Context,
}
}

logger.Debug("Bundle processed, waiting 500ms for preconfs")
logger.Debug("Bundle processed, waiting 1000ms for preconfs")

// sleep 500ms to receive preconfirmations
time.Sleep(500 * time.Millisecond)
// sleep 1000ms to receive preconfirmations
time.Sleep(1000 * time.Millisecond)

logger.Debug("Wait over, checking preconfs received")

Expand Down

0 comments on commit e1d6afa

Please sign in to comment.