Skip to content

Commit

Permalink
Add log to be able to read snapshot height (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneh1999 authored Jan 30, 2025
1 parent 22f1c08 commit edb3269
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arbnode/transaction_streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1338,7 +1338,7 @@ func (s *TransactionStreamer) checkSubmittedTransactionForFinality(ctx context.C
}

if snapshot.Height <= height {
return errors.New("snapshot height is less than or equal to transaction height")
return fmt.Errorf("snapshot height %w is less than or equal to the requested height %w", snapshot.Height, height)

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults, path)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults, path)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults, hash)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (defaults, hash)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (race, path)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (race, path)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (race, hash)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (race, hash)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (challenge)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (stylus)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (stylus)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (long)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (long)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (redis)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64

Check failure on line 1341 in arbnode/transaction_streamer.go

View workflow job for this annotation

GitHub Actions / Go Tests (redis)

fmt.Errorf format %w has arg snapshot.Height of wrong type uint64
}

nextHeader, err := s.espressoClient.FetchHeaderByHeight(ctx, snapshot.Height)
Expand Down Expand Up @@ -1724,7 +1724,6 @@ func (s *TransactionStreamer) pollToResubmitEspressoTransactions(ctx context.Con
}

shouldResubmit := s.shouldResubmitEspressoTransactions(ctx, submittedTxns)
log.Info("Attempting to resubmit transactions", "shouldResubmit", shouldResubmit)
if shouldResubmit {
for _, tx := range submittedTxns {
txHash, err := s.resubmitEspressoTransactions(ctx, tx)
Expand Down

0 comments on commit edb3269

Please sign in to comment.