Skip to content

Commit

Permalink
fix log (#1777)
Browse files Browse the repository at this point in the history
  • Loading branch information
ARR552 authored Mar 9, 2023
1 parent 89f3bdb commit 5ef97f3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sequencer/finalizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,11 @@ func (f *finalizer) processTransaction(ctx context.Context, tx *TxTracker) error
} else {
f.processRequest.Transactions = []byte{}
}
log.Infof("processTransaction: single tx. Batch.BatchNumber: %d, BatchNumber: %d, OldStateRoot: %s, txHash: %s, GER: %s", f.batch.batchNumber, f.processRequest.BatchNumber, f.processRequest.OldStateRoot, tx.Hash.String(), f.processRequest.GlobalExitRoot.String())
hash := "nil"
if tx != nil {
hash = tx.HashStr
}
log.Infof("processTransaction: single tx. Batch.BatchNumber: %d, BatchNumber: %d, OldStateRoot: %s, txHash: %s, GER: %s", f.batch.batchNumber, f.processRequest.BatchNumber, f.processRequest.OldStateRoot, hash, f.processRequest.GlobalExitRoot.String())
result, err := f.executor.ProcessBatch(ctx, f.processRequest, false)
if err != nil {
log.Errorf("failed to process transaction, isClaim: %v, err: %s", tx.IsClaim, err)
Expand Down

0 comments on commit 5ef97f3

Please sign in to comment.