From ffbab4e18ce980f972289ee2869a24dec09dffce Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 9 Sep 2024 10:25:56 -0400 Subject: [PATCH] fix bug in expiry calc in broadcast bridge message (#330) (#331) (cherry picked from commit d1fbc43c6f5a9805451f97ba86a874c33bddabae) Co-authored-by: akrem <71235284+akremstudy@users.noreply.github.com> --- daemons/reporter/client/broadcast_message.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemons/reporter/client/broadcast_message.go b/daemons/reporter/client/broadcast_message.go index 6cda21fe6..800f9154c 100644 --- a/daemons/reporter/client/broadcast_message.go +++ b/daemons/reporter/client/broadcast_message.go @@ -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) }