Skip to content

Commit

Permalink
Not setting value on enqueued VAAs correctly
Browse files Browse the repository at this point in the history
Change-Id: I9fd3a5d8fc574f8382125445fa688efdae45b88c
  • Loading branch information
bruce-riley committed Sep 6, 2022
1 parent eca9216 commit 649b9af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions node/pkg/governor/governor_monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,12 @@ func (gov *ChainGovernor) publishStatus(hb *gossipv1.Heartbeat, sendC chan []byt

enqueuedVaas := make([]*gossipv1.ChainGovernorStatus_EnqueuedVAA, 0)
for _, pe := range ce.pending {
value, err := computeValue(pe.amount, pe.token)
if err != nil {
gov.logger.Error("cgov: failed to compute value of pending transfer", zap.String("msgID", pe.dbData.Msg.MessageIDString()), zap.Error(err))
value = 0
}

enqueuedVaas = append(enqueuedVaas, &gossipv1.ChainGovernorStatus_EnqueuedVAA{
Sequence: pe.dbData.Msg.Sequence,
ReleaseTime: uint32(pe.dbData.ReleaseTime.Unix()),
Expand Down

0 comments on commit 649b9af

Please sign in to comment.