Skip to content

Commit

Permalink
fix(mimicry): blob vars
Browse files Browse the repository at this point in the history
  • Loading branch information
Savid committed Mar 13, 2024
1 parent abace0c commit 2b9b279
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/mimicry/p2p/execution/event_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ func (p *Peer) getTransactionData(ctx context.Context, event *types.Transaction,

if sidecars != nil {
for i := 0; i < len(sidecars.Blobs); i++ {
sidecars := sidecars.Blobs[i][:]
sidecarsSize += len(sidecars)
sidecarsEmptySize += ethereum.CountConsecutiveEmptyBytes(sidecars, 4)
sidecar := sidecars.Blobs[i][:]
sidecarsSize += len(sidecar)
sidecarsEmptySize += ethereum.CountConsecutiveEmptyBytes(sidecar, 4)
}
} else {
return nil, errors.Errorf("no sidecars found for a type 3 transaction %s", event.Hash().String())
Expand Down

0 comments on commit 2b9b279

Please sign in to comment.