diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java index ff7c992d71..a8a2a302e1 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java @@ -215,7 +215,7 @@ public class EthPeer implements Comparable { } public void recordUsefulResponse() { - reputation.recordUsefulResposne(); + reputation.recordUsefulResponse(); } public void disconnect(final DisconnectReason reason) { diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java index aa1c37f321..d0010b0fcf 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java @@ -85,7 +85,7 @@ public class PeerReputation implements Comparable { } } - public void recordUsefulResposne() { + public void recordUsefulResponse() { score += SMALL_ADJUSTMENT; } diff --git a/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputationTest.java b/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputationTest.java index e8a8c6d9a7..5d7cb5962f 100644 --- a/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputationTest.java +++ b/ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputationTest.java @@ -83,7 +83,7 @@ public class PeerReputationTest { @Test public void shouldIncreaseScore() { - reputation.recordUsefulResposne(); + reputation.recordUsefulResponse(); assertThat(reputation.compareTo(new PeerReputation())).isGreaterThan(0); } }