Skip to content

Commit 2384c09

Browse files
vaidikcodemacfarla
andauthored
Fix #7810 (#7867)
* fix-#7810 Signed-off-by: vaidikcode <vaidikbhardwaj00@gmail.com> * fix-#7810 Signed-off-by: vaidikcode <vaidikbhardwaj00@gmail.com> --------- Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
1 parent 58acfce commit 2384c09

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

besu/src/main/java/org/hyperledger/besu/controller/BesuControllerBuilder.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ public BesuController build() {
625625
ethereumWireProtocolConfiguration.isLegacyEth64ForkIdEnabled());
626626
final EthPeers ethPeers =
627627
new EthPeers(
628-
getSupportedProtocol(),
628+
EthProtocol.NAME,
629629
currentProtocolSpecSupplier,
630630
clock,
631631
metricsSystem,
@@ -1022,15 +1022,6 @@ protected abstract ConsensusContext createConsensusContext(
10221022
final WorldStateArchive worldStateArchive,
10231023
final ProtocolSchedule protocolSchedule);
10241024

1025-
/**
1026-
* Gets supported protocol.
1027-
*
1028-
* @return the supported protocol
1029-
*/
1030-
protected String getSupportedProtocol() {
1031-
return EthProtocol.NAME;
1032-
}
1033-
10341025
/**
10351026
* Create eth protocol manager eth protocol manager.
10361027
*

besu/src/main/java/org/hyperledger/besu/controller/ConsensusScheduleBesuControllerBuilder.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,6 @@ protected void validateContext(final ProtocolContext context) {
228228
besuControllerBuilderSchedule.get(GENESIS_BLOCK_NUMBER).validateContext(context);
229229
}
230230

231-
@Override
232-
protected String getSupportedProtocol() {
233-
return besuControllerBuilderSchedule.get(0L).getSupportedProtocol();
234-
}
235-
236231
@Override
237232
protected EthProtocolManager createEthProtocolManager(
238233
final ProtocolContext protocolContext,

0 commit comments

Comments
 (0)