From 80ab6489279fde7d61d896e2030bb578362d1fcf Mon Sep 17 00:00:00 2001 From: Sally MacFarlane Date: Thu, 4 Aug 2022 13:35:53 +1000 Subject: [PATCH] typo (#4217) Signed-off-by: Sally MacFarlane --- .../java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java | 2 +- .../hyperledger/besu/ethereum/eth/manager/PeerReputation.java | 2 +- .../besu/ethereum/eth/manager/PeerReputationTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); } }