From 565bbb73a57e3578ddfd9deadd339edac27eb5bb Mon Sep 17 00:00:00 2001 From: Justin Florentine Date: Tue, 14 Nov 2023 12:06:44 -0500 Subject: [PATCH] spotless Signed-off-by: Justin Florentine --- .../besu/datatypes/BlobsWithCommitments.java | 4 +--- .../eth/transactions/TransactionPool.java | 4 ++-- .../AbstractPendingTransactionsSorter.java | 18 +++++++++--------- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/datatypes/src/main/java/org/hyperledger/besu/datatypes/BlobsWithCommitments.java b/datatypes/src/main/java/org/hyperledger/besu/datatypes/BlobsWithCommitments.java index 244df9dc813..281d3ada681 100644 --- a/datatypes/src/main/java/org/hyperledger/besu/datatypes/BlobsWithCommitments.java +++ b/datatypes/src/main/java/org/hyperledger/besu/datatypes/BlobsWithCommitments.java @@ -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 blobQuads; diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/TransactionPool.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/TransactionPool.java index a45c2901803..779523ae27b 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/TransactionPool.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/TransactionPool.java @@ -376,8 +376,8 @@ private void reAddTransactions(final List 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); diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/AbstractPendingTransactionsSorter.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/AbstractPendingTransactionsSorter.java index 5db7c3ef5ba..bb53a8e4fbd 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/AbstractPendingTransactionsSorter.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/transactions/sorter/AbstractPendingTransactionsSorter.java @@ -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 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 restoreBlob(final Transaction transaction) { + return blobCache.restoreBlob(transaction); + } }