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 12, 2024
1 parent 21703c4 commit c18ca06
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/l1Listener/l1Listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ func (l *L1Listener) watchL1Block(ctx context.Context) error {
}

winner := string(bytes.ToValidUTF8(header.Extra, []byte("�")))
l.logger.Info("new L1 winner", "winner", winner, "block", header.Number.Int64())

builderAddr, ok := l.builderIdentityCache[winner]
if !ok {
Expand All @@ -180,6 +179,13 @@ func (l *L1Listener) watchL1Block(ctx context.Context) error {
l.builderIdentityCache[winner] = builderAddr
}

l.logger.Info(
"new L1 winner",
"winner", winner,
"block", header.Number.Int64(),
"builder", builderAddr.String(),
)

winnerPostingTxn, err := l.recorder.RecordL1Block(
big.NewInt(0).SetUint64(blockNum),
builderAddr,
Expand Down

0 comments on commit c18ca06

Please sign in to comment.