From fdc1df7f50456a58c87dc58b8286f7fab25e34c7 Mon Sep 17 00:00:00 2001 From: Gabriel-Trintinalia Date: Fri, 8 Nov 2024 11:16:09 +0700 Subject: [PATCH] remove references Signed-off-by: Gabriel-Trintinalia --- .../besu/ethereum/mainnet/ValidationTestUtils.java | 4 ++-- .../hyperledger/besu/ethereum/util/RawBlockIteratorTest.java | 4 ++-- .../besu/ethereum/eth/messages/BlockBodiesMessageTest.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/ValidationTestUtils.java b/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/ValidationTestUtils.java index bd1a1272f3..2e38f08a8f 100644 --- a/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/ValidationTestUtils.java +++ b/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/ValidationTestUtils.java @@ -19,7 +19,7 @@ import org.hyperledger.besu.ethereum.core.BlockBody; import org.hyperledger.besu.ethereum.core.BlockHeader; import org.hyperledger.besu.ethereum.core.Transaction; import org.hyperledger.besu.ethereum.core.Withdrawal; -import org.hyperledger.besu.ethereum.core.encoding.registry.RlpTransactionProvider; +import org.hyperledger.besu.ethereum.core.encoding.registry.RlpProvider; import org.hyperledger.besu.ethereum.rlp.BytesValueRLPInput; import org.hyperledger.besu.ethereum.rlp.RLPInput; @@ -52,7 +52,7 @@ public final class ValidationTestUtils { false); input.enterList(); input.skipNext(); - final List transactions = input.readList(RlpTransactionProvider::readFrom); + final List transactions = input.readList(RlpProvider.transaction()::readFrom); final List ommers = input.readList(rlp -> BlockHeader.readFrom(rlp, new MainnetBlockHeaderFunctions())); final Optional> withdrawals = diff --git a/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/util/RawBlockIteratorTest.java b/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/util/RawBlockIteratorTest.java index d4f77754b8..a259097b24 100644 --- a/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/util/RawBlockIteratorTest.java +++ b/ethereum/core/src/test/java/org/hyperledger/besu/ethereum/util/RawBlockIteratorTest.java @@ -20,7 +20,7 @@ import org.hyperledger.besu.ethereum.core.Block; import org.hyperledger.besu.ethereum.core.BlockDataGenerator; import org.hyperledger.besu.ethereum.core.BlockHeader; import org.hyperledger.besu.ethereum.core.BlockHeaderFunctions; -import org.hyperledger.besu.ethereum.core.encoding.registry.RlpTransactionProvider; +import org.hyperledger.besu.ethereum.core.encoding.registry.RlpProvider; import org.hyperledger.besu.ethereum.mainnet.MainnetBlockHeaderFunctions; import org.hyperledger.besu.ethereum.rlp.BytesValueRLPOutput; @@ -99,7 +99,7 @@ public class RawBlockIteratorTest { final BytesValueRLPOutput out = new BytesValueRLPOutput(); out.startList(); block.getHeader().writeTo(out); - out.writeList(block.getBody().getTransactions(), RlpTransactionProvider::writeTo); + out.writeList(block.getBody().getTransactions(), RlpProvider.transaction()::writeTo); out.writeList(block.getBody().getOmmers(), BlockHeader::writeTo); out.endList(); return out.encoded().toArray(); diff --git a/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/messages/BlockBodiesMessageTest.java b/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/messages/BlockBodiesMessageTest.java index 3f9cbfc5fe..5a85eab67e 100644 --- a/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/messages/BlockBodiesMessageTest.java +++ b/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/messages/BlockBodiesMessageTest.java @@ -22,7 +22,7 @@ import org.hyperledger.besu.ethereum.core.BlockBody; import org.hyperledger.besu.ethereum.core.BlockHeader; import org.hyperledger.besu.ethereum.core.BlockHeaderFunctions; import org.hyperledger.besu.ethereum.core.MiningConfiguration; -import org.hyperledger.besu.ethereum.core.encoding.registry.RlpTransactionProvider; +import org.hyperledger.besu.ethereum.core.encoding.registry.RlpProvider; import org.hyperledger.besu.ethereum.difficulty.fixed.FixedDifficultyProtocolSchedule; import org.hyperledger.besu.ethereum.mainnet.MainnetBlockHeaderFunctions; import org.hyperledger.besu.ethereum.mainnet.ProtocolSchedule; @@ -83,7 +83,7 @@ public final class BlockBodiesMessageTest { bodies.add( // We know the test data to only contain Frontier blocks new BlockBody( - oneBlock.readList(RlpTransactionProvider::readFrom), + oneBlock.readList(RlpProvider.transaction()::readFrom), oneBlock.readList( rlp -> BlockHeader.readFrom(rlp, new MainnetBlockHeaderFunctions())))); }