Skip to content

Commit

Permalink
inbox_tracker: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tsahee committed Mar 25, 2024
1 parent 543be5d commit d806f4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arbnode/inbox_tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ func (t *InboxTracker) GetBatchCount() (uint64, error) {
return count, nil
}

// err will return unexpected/internal errors
// bool will be false if batch not found (meaning, block not yet posted on a batch)
func (t *InboxTracker) FindInboxBatchContainingMessage(pos arbutil.MessageIndex) (uint64, bool, error) {
batchCount, err := t.GetBatchCount()
if err != nil {
Expand Down

0 comments on commit d806f4d

Please sign in to comment.