Skip to content

Commit

Permalink
Remove unneeded repacking (Consensys#8222)
Browse files Browse the repository at this point in the history
  • Loading branch information
zilm13 authored Apr 18, 2024
1 parent 519d9f2 commit 38708fb
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -336,16 +336,12 @@ public Optional<UInt64> getOptimisticTransitionBlockSlot() {

@Override
public Optional<Bytes> getBlobSidecar(final SlotAndBlockRootAndBlobIndex key) {
return db.get(
schema.getColumnBlobSidecarBySlotRootBlobIndex(),
new SlotAndBlockRootAndBlobIndex(key.getSlot(), key.getBlockRoot(), key.getBlobIndex()));
return db.get(schema.getColumnBlobSidecarBySlotRootBlobIndex(), key);
}

@Override
public Optional<Bytes> getNonCanonicalBlobSidecar(final SlotAndBlockRootAndBlobIndex key) {
return db.get(
schema.getColumnNonCanonicalBlobSidecarBySlotRootBlobIndex(),
new SlotAndBlockRootAndBlobIndex(key.getSlot(), key.getBlockRoot(), key.getBlobIndex()));
return db.get(schema.getColumnNonCanonicalBlobSidecarBySlotRootBlobIndex(), key);
}

@MustBeClosed
Expand Down

0 comments on commit 38708fb

Please sign in to comment.