Skip to content

Commit

Permalink
separate max
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed May 3, 2024
1 parent 9854843 commit bc653fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/processor/path_end_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ func (pathEnd *pathEndRuntime) shouldSendPacketMessage(message packetIBCMessage,
zap.Inline(k),
)
pathEnd.retryCount++
if pathEnd.retryCount >= maxMessageSendRetries {
if pathEnd.retryCount >= maxMessageSendRetriesIfChannelNotOpen {
pathEnd.removePacketRetention(counterparty, eventType, k, sequence)
pathEnd.retryCount = 0
return false
Expand Down
3 changes: 3 additions & 0 deletions relayer/processor/path_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ const (
// How many times to retry sending a message before giving up on it.
maxMessageSendRetries = 5

// How many times to retry sending a message if channel is not opened.
maxMessageSendRetriesIfChannelNotOpen = 1

// How many blocks of history to retain ibc headers in the cache for.
ibcHeadersToCache = 10

Expand Down

0 comments on commit bc653fe

Please sign in to comment.