synchronized List<DiscoveryPeer> getPeers() {
    return unmodifiableList(asList(Arrays.copyOf(kBucket, tailIndex + 1)));
  }
Returns an immutable list backed by the k-bucket array. This method provides a convenient way
to access all peers maintained by the instance of Bucket under consideration.

@return immutable view of the peer array
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/discovery/internal/Bucket.java