Skip to content

Commit

Permalink
Add hotshot height log
Browse files Browse the repository at this point in the history
  • Loading branch information
Sneh1999 committed Dec 19, 2024
1 parent dd733c4 commit 78444a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arbnode/transaction_streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1271,14 +1271,14 @@ func (s *TransactionStreamer) pollSubmittedTransactionForFinality(ctx context.Co
if err != nil {
return fmt.Errorf("failed to fetch the submitted transaction hash (hash: %s): %w", submittedTxHash.String(), err)
}

height := data.BlockHeight

header, err := s.espressoClient.FetchHeaderByHeight(ctx, height)
if err != nil {
return fmt.Errorf("could not get the header (height: %d): %w", height, err)
}

log.Info("Fetching Merkle Root at hotshot height: ", height)
// Verify the merkle proof
snapshot, err := s.lightClientReader.FetchMerkleRoot(height, nil)
if err != nil {
Expand Down

0 comments on commit 78444a6

Please sign in to comment.