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 1fb0226 commit fb27389
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ func (l *Listener) Start(ctx context.Context) <-chan struct{} {
l.logger.Error("failed to set last block", "error", err)
return
}
lastBlock = blockNumber
l.logger.Info("processed logs", "from", lastBlock+1, "to", blockNumber, "count", len(logs))
lastBlock = blockNumber
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions pkg/updater/updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ func (u *Updater) subscribeOpenedCommitments(ctx context.Context) error {
"bundle is not atomic",
"commitmentIdx", common.Bytes2Hex(update.CommitmentIndex[:]),
"txnHash", update.TxnHash,
"blockNumber", update.BlockNumber,
"found", found,
"posInBlock", posInBlock,
"expectedPosInBlock", txns[commitmentTxnHashes[0]]+i,
)
// The committer did not include the transactions in the block
// correctly, so this is a slash to be processed
Expand Down

0 comments on commit fb27389

Please sign in to comment.