Skip to content

Commit

Permalink
Increase relayer intervals (#129)
Browse files Browse the repository at this point in the history
* feat: Increase relayer interval and retry timeout

* feat: Increase notifier block data channel queue size
  • Loading branch information
Hyodar authored Apr 29, 2024
1 parent fdb90bd commit 26b29af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion operator/attestor/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (notifier *Notifier) Subscribe(rollupId uint32) (<-chan consumer.BlockData,
notifier.rollupIdsToSubscribers[rollupId] = list.New()
}

notifierC := make(chan consumer.BlockData, 100)
notifierC := make(chan consumer.BlockData, 150)
id := notifier.rollupIdsToSubscribers[rollupId].PushBack(notifierC)

return notifierC, id
Expand Down
4 changes: 2 additions & 2 deletions relayer/relayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (

const (
NAMESPACE_ID = 1
SUBMIT_BLOCK_INTERVAL = 1500 * time.Millisecond
SUBMIT_BLOCK_RETRY_TIMEOUT = 1 * time.Second
SUBMIT_BLOCK_INTERVAL = 2500 * time.Millisecond
SUBMIT_BLOCK_RETRY_TIMEOUT = 2 * time.Second
SUBMIT_BLOCK_RETRIES = 3
)

Expand Down

0 comments on commit 26b29af

Please sign in to comment.