Skip to content

Commit

Permalink
fix bug in expiry calc in broadcast bridge message (#330) (#331)
Browse files Browse the repository at this point in the history
(cherry picked from commit d1fbc43)

Co-authored-by: akrem <[email protected]>
  • Loading branch information
github-actions[bot] and akremstudy authored Sep 9, 2024
1 parent 5a4c08d commit ffbab4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemons/reporter/client/broadcast_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (c *Client) generateDepositmessages(ctx context.Context, bg *sync.WaitGroup
if err != nil {
return fmt.Errorf("error getting block: %w", err)
}
expiry := block.Block.Time.Sub(queryresp.Query.Expiration)
expiry := queryresp.Query.Expiration.Sub(block.Block.Time)
// add error handling
c.SubMgr.AddDepositCommit(ctx, queryId, commit, expiry)
}
Expand Down

0 comments on commit ffbab4e

Please sign in to comment.