From 508b04391b88989daf3bfef500c9d9d6aa97911a Mon Sep 17 00:00:00 2001 From: shuoer86 <129674997+shuoer86@users.noreply.github.com> Date: Wed, 18 Oct 2023 11:42:25 +0800 Subject: [PATCH] Fix typos (#6036) Signed-off-by: shuoer86 <129674997+shuoer86@users.noreply.github.com> Co-authored-by: Sally MacFarlane --- .../hyperledger/besu/ethereum/eth/manager/PeerReputation.java | 3 ++- .../hyperledger/besu/ethereum/eth/messages/StatusMessage.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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 0c2edf226ed..e152d8c91b6 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 @@ -56,7 +56,8 @@ public 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; } diff --git a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/messages/StatusMessage.java b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/messages/StatusMessage.java index 9e8af4b0e57..4e268e6b411 100644 --- a/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/messages/StatusMessage.java +++ b/ethereum/eth/src/main/java/org/hyperledger/besu/ethereum/eth/messages/StatusMessage.java @@ -111,9 +111,9 @@ public Difficulty totalDifficulty() { } /** - * 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;