Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions espresso/streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,11 @@ func (s *BatchStreamer[B]) processRemainingBatches(ctx context.Context) {
continue
}

s.Log.Trace("Remaining list", "Inserting batch into buffer", "batch", batch)
header := batch.Header()
s.Log.Trace("Remaining list", "Inserting batch into buffer",
"parentHash", header.ParentHash,
"epochNum", header.Number,
"timestamp", header.Time)
s.BatchBuffer.Insert(batch, pos)
keysToDelete = append(keysToDelete, k)
}
Expand Down Expand Up @@ -513,7 +517,11 @@ func (s *BatchStreamer[B]) processEspressoTransaction(ctx context.Context, trans
s.RemainingBatches[hash] = *batch

case BatchAccept:
s.Log.Info("Inserting batch into buffer", "batch", batch)
header := (*batch).Header()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: why adding * here but not on line 480?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As one is type B and one is type *B

s.Log.Info("Inserting batch into buffer",
"parentHash", header.ParentHash,
"epochNum", header.Number,
"timestamp", header.Time)
s.BatchBuffer.Insert(*batch, pos)

case BatchFuture:
Expand Down
Loading