Skip to content

Commit 9cb4860

Browse files
Remove unnecessary reliance on eth68 mock peers in FullSyncChainDownloaderForkTest
Signed-off-by: Matilda Clerke <[email protected]>
1 parent 56ca708 commit 9cb4860

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/sync/fullsync/FullSyncChainDownloaderForkTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import org.hyperledger.besu.ethereum.chain.Blockchain;
2222
import org.hyperledger.besu.ethereum.chain.MutableBlockchain;
2323
import org.hyperledger.besu.ethereum.core.BlockchainSetupUtil;
24-
import org.hyperledger.besu.ethereum.core.Difficulty;
2524
import org.hyperledger.besu.ethereum.eth.EthProtocolConfiguration;
2625
import org.hyperledger.besu.ethereum.eth.manager.EthContext;
2726
import org.hyperledger.besu.ethereum.eth.manager.EthProtocolManager;
@@ -111,12 +110,10 @@ private SynchronizerConfiguration.Builder syncConfigBuilder() {
111110
@Test
112111
public void disconnectsFromPeerOnBadFork() {
113112
otherBlockchainSetup.importAllBlocks();
114-
final Difficulty localTd = localBlockchain.getChainHead().getTotalDifficulty();
115113

116114
final RespondingEthPeer.Responder responder =
117115
RespondingEthPeer.blockchainResponder(otherBlockchain);
118-
final RespondingEthPeer peer =
119-
EthProtocolManagerTestUtil.createPeer(ethProtocolManager, localTd.add(100), 100);
116+
final RespondingEthPeer peer = EthProtocolManagerTestUtil.createPeer(ethProtocolManager, 100);
120117

121118
final ChainDownloader downloader = downloader();
122119
downloader.start();

0 commit comments

Comments
 (0)