private boolean checkEnode(final EnodeURL localEnode, final EnodeURL enode) {
    return (EnodeURLImpl.sameListeningEndpoint(localEnode, enode)
        || bootnodeEnodes.stream()
            .anyMatch(bootNode -> EnodeURLImpl.sameListeningEndpoint(bootNode, enode)));
  }
Creates the provider observing the provided p2p network

@param p2pNetwork the p2p network to observe
@param bootnodeEnodes the bootnodes that this node is configured to connect to
ethereum/permissioning/src/main/java/org/hyperledger/besu/ethereum/permissioning/node/InsufficientPeersPermissioningProvider.java