Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Florentine <[email protected]>
  • Loading branch information
jflo committed Nov 14, 2023
1 parent 3cda754 commit 565bbb7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ public class BlobsWithCommitments {

/** A record to hold the blob, commitment, proof and versioned hash for a blob. */
public record BlobQuad(
Blob blob, KZGCommitment kzgCommitment, KZGProof kzgProof, VersionedHash versionedHash) {

}
Blob blob, KZGCommitment kzgCommitment, KZGProof kzgProof, VersionedHash versionedHash) {}

private final List<BlobQuad> blobQuads;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ private void reAddTransactions(final List<Transaction> reAddTransactions) {
// if adding a blob tx, and it is missing its blob, is a re-org and we should restore the blob
// from cache.
var txsByOrigin =
reAddTransactions.stream()
.map(t -> pendingTransactions.restoreBlob(t).orElse(t))
reAddTransactions.stream()
.map(t -> pendingTransactions.restoreBlob(t).orElse(t))
.collect(Collectors.partitioningBy(tx -> isLocalSender(tx.getSender())));
var reAddLocalTxs = txsByOrigin.get(true);
var reAddRemoteTxs = txsByOrigin.get(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -494,13 +494,13 @@ public String toTraceLog() {
return sb.toString();
}
}
/**
* @param transaction to restore blobs onto
* @return an optional copy of the supplied transaction, but with the BlobsWithCommitments
* restored. If none could be restored, empty.
*/
@Override
public Optional<Transaction> restoreBlob(final Transaction transaction) {
return blobCache.restoreBlob(transaction);
}
/**
* @param transaction to restore blobs onto
* @return an optional copy of the supplied transaction, but with the BlobsWithCommitments
* restored. If none could be restored, empty.
*/
@Override
public Optional<Transaction> restoreBlob(final Transaction transaction) {
return blobCache.restoreBlob(transaction);
}
}

0 comments on commit 565bbb7

Please sign in to comment.