Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
pull/4222/head
Sally MacFarlane 2 years ago committed by GitHub
parent ebdb19a958
commit 80ab648927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/EthPeer.java
  2. 2
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java
  3. 2
      ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputationTest.java

@ -215,7 +215,7 @@ public class EthPeer implements Comparable<EthPeer> {
}
public void recordUsefulResponse() {
reputation.recordUsefulResposne();
reputation.recordUsefulResponse();
}
public void disconnect(final DisconnectReason reason) {

@ -85,7 +85,7 @@ public class PeerReputation implements Comparable<PeerReputation> {
}
}
public void recordUsefulResposne() {
public void recordUsefulResponse() {
score += SMALL_ADJUSTMENT;
}

@ -83,7 +83,7 @@ public class PeerReputationTest {
@Test
public void shouldIncreaseScore() {
reputation.recordUsefulResposne();
reputation.recordUsefulResponse();
assertThat(reputation.compareTo(new PeerReputation())).isGreaterThan(0);
}
}

Loading…
Cancel
Save