Skip to content

Commit

Permalink
fix: add btp height of only it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
viveksharmapoudel committed Dec 11, 2023
1 parent c222afa commit 436d733
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions relayer/processor/path_processor_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -1841,8 +1841,10 @@ func (pp *PathProcessor) queuePendingRecvAndAcksByHeights(
if !header.IsCompleteBlock() {
return fmt.Errorf("icon module should have complete block at height: %d because of send packet message: %v", sendPacket.Height, sendPacket)
}

Check warning on line 1843 in relayer/processor/path_processor_internal.go

View check run for this annotation

Codecov / codecov/patch

relayer/processor/path_processor_internal.go#L1833-L1843

Added lines #L1833 - L1843 were not covered by tests
// enqueuing this height
src.BTPHeightQueue.Enqueue(sendPacket.Height)
// enqueuing this height if it doesn't exist
if !src.BTPHeightQueue.ItemExist(sendPacket.Height) {
src.BTPHeightQueue.Enqueue(sendPacket.Height)
}

Check warning on line 1847 in relayer/processor/path_processor_internal.go

View check run for this annotation

Codecov / codecov/patch

relayer/processor/path_processor_internal.go#L1845-L1847

Added lines #L1845 - L1847 were not covered by tests
}
}

Expand Down

0 comments on commit 436d733

Please sign in to comment.