Signed-off-by: shuoer86 <129674997+shuoer86@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <macfarla.github@gmail.com>
pull/6052/head
shuoer86 1 year ago committed by GitHub
parent a90e4487fc
commit 508b04391b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/manager/PeerReputation.java
  2. 4
      ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/messages/StatusMessage.java

@ -56,7 +56,8 @@ public class PeerReputation implements Comparable<PeerReputation> {
}
public PeerReputation(final int initialScore, final int maxScore) {
checkArgument(initialScore <= maxScore, "Inital score must be less than or equal to max score");
checkArgument(
initialScore <= maxScore, "Initial score must be less than or equal to max score");
this.maxScore = maxScore;
this.score = initialScore;
}

@ -111,9 +111,9 @@ public final class StatusMessage extends AbstractMessageData {
}
/**
* Return The hash of the head of the associated node's local blockchian.
* Return The hash of the head of the associated node's local blockchain.
*
* @return The hash of the head of the associated node's local blockchian.
* @return The hash of the head of the associated node's local blockchain.
*/
public Hash bestHash() {
return status().bestHash;

Loading…
Cancel
Save