* typos

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* spotless

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
pull/2694/head
Antoine Toulme 3 years ago committed by GitHub
parent cbcf5258dc
commit a9212d352d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/DiscoveryPeer.java
  2. 2
      ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/internal/Bucket.java

@ -27,7 +27,8 @@ import org.apache.tuweni.bytes.Bytes;
import org.ethereum.beacon.discovery.schema.NodeRecord; import org.ethereum.beacon.discovery.schema.NodeRecord;
/** /**
* Represents an Ethereum node that we interacting with through the discovery and wire protocols. * Represents an Ethereum node that we are interacting with through the discovery and wire
* protocols.
*/ */
public class DiscoveryPeer extends DefaultPeer { public class DiscoveryPeer extends DefaultPeer {
private PeerDiscoveryStatus status = PeerDiscoveryStatus.KNOWN; private PeerDiscoveryStatus status = PeerDiscoveryStatus.KNOWN;

@ -56,7 +56,7 @@ public class Bucket {
* Returns the peer with the provided ID if it exists in the bucket. * Returns the peer with the provided ID if it exists in the bucket.
* *
* <p>This operation presupposes that the system has been in recent contact with this peer, hence * <p>This operation presupposes that the system has been in recent contact with this peer, hence
* it relocates it to to the head of the list. * it relocates it to the head of the list.
* *
* @param id The peer's ID (public key). * @param id The peer's ID (public key).
* @return An empty optional if the peer was not a member of this bucket, or a filled optional if * @return An empty optional if the peer was not a member of this bucket, or a filled optional if

Loading…
Cancel
Save