Skip to content

Commit

Permalink
feat: e2e privacy integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok committed Apr 15, 2024
1 parent 0ddd527 commit 1fb0226
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ func (l *Listener) Start(ctx context.Context) <-chan struct{} {
return
}
lastBlock = blockNumber
l.logger.Info("processed logs", "from", lastBlock+1, "to", blockNumber, "count", len(logs))
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions pkg/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func (u *Updater) subscribeEncryptedCommitments(ctx context.Context) error {
return err
}
u.metrics.EncryptedCommitmentsCount.Inc()
u.logger.Debug("added encrypted commitment", "commitmentIdx", common.Bytes2Hex(update.CommitmentIndex[:]))
return nil
},
)
Expand Down Expand Up @@ -175,6 +176,7 @@ func (u *Updater) subscribeOpenedCommitments(ctx context.Context) error {
if alreadySettled {
// both bidders and providers could open commitments, so this could
// be a duplicate event
u.logger.Info("duplicate open commitment event", "commitmentIdx", common.Bytes2Hex(update.CommitmentIndex[:]))
return nil
}

Expand Down Expand Up @@ -312,6 +314,7 @@ func (u *Updater) addSettlement(
case settler.SettlementTypeSlash:
u.metrics.SlashesCount.Inc()
}
u.logger.Info("added settlement", "commitmentIdx", common.Bytes2Hex(update.CommitmentIndex[:]), "type", settlementType)

return nil
}
Expand Down

0 comments on commit 1fb0226

Please sign in to comment.