Skip to content

Commit 4eaee47

Browse files
authored
add buffer to remote store (#890)
1 parent 8b81798 commit 4eaee47

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/fork_integration_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ func TestForkingAgainstTestnet(t *testing.T) {
170170

171171
// TestForkingAgainstMainnet exercises the forking path with mainnet
172172
func TestForkingAgainstMainnet(t *testing.T) {
173-
t.Skip("remove after Forte release")
174173
logger := zerolog.Nop()
175174

176175
// Get remote latest sealed height to pin fork

storage/remote/store.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ const (
5151
maxDelay = 30 * time.Second
5252
jitterFactor = 0.1
5353
maxConcurrentRequests = 10 // Maximum concurrent requests to remote node
54+
blockBuffer = 10 // Buffer to allow for block propagation
5455
)
5556

5657
// isRateLimitError checks if the error is a rate limiting error
@@ -290,7 +291,7 @@ func (s *Store) initializeStartBlock(ctx context.Context) error {
290291
if err != nil {
291292
return fmt.Errorf("could not get last block height: %w", err)
292293
}
293-
s.forkHeight = resp.Block.Height
294+
s.forkHeight = resp.Block.Height - blockBuffer
294295
}
295296

296297
s.logger.Info().

0 commit comments

Comments
 (0)