@Override
  public Optional<ForkId> getForkId() {
    return Optional.ofNullable(forkId);
  }
Creates a {@link DefaultPeer} instance from an URI object that follows the enode URL format.

@param uri The enode URI.
@return The Peer instance.
@see <a href="https://github.com/ethereum/wiki/wiki/enode-url-format">enode URL format</a>
ethereum/p2p/src/main/java/org/hyperledger/besu/ethereum/p2p/peers/DefaultPeer.java