Skip to content

Commit

Permalink
Remove code mistakenly added during rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsaigle committed Apr 29, 2024
1 parent 821da57 commit 8569353
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions node/pkg/governor/governor.go
Original file line number Diff line number Diff line change
Expand Up @@ -615,29 +615,6 @@ func (gov *ChainGovernor) CheckPendingForTime(now time.Time) ([]*common.MessageP
zap.Error(err),
)
delete(gov.msgsSeen, pe.hash) // Rest of the clean up happens below.

// If we get here, publish it and remove it from the pending list.
msgsToPublish = append(msgsToPublish, &pe.dbData.Msg)

if countsTowardsTransfers {
xfer := db.Transfer{
Timestamp: now,
Value: value,
OriginChain: pe.token.token.chain,
OriginAddress: pe.token.token.addr,
EmitterChain: pe.dbData.Msg.EmitterChain,
EmitterAddress: pe.dbData.Msg.EmitterAddress,
MsgID: pe.dbData.Msg.MessageIDString(),
Hash: pe.hash,
}

if err := gov.db.StoreTransfer(&xfer); err != nil {
gov.msgsToPublish = msgsToPublish
return nil, err
}

ce.transfers = append(ce.transfers, &xfer)
gov.msgsSeen[pe.hash] = transferComplete
} else {
// If we get here, publish it and remove it from the pending list.
msgsToPublish = append(msgsToPublish, &pe.dbData.Msg)
Expand Down

0 comments on commit 8569353

Please sign in to comment.