default boolean nodeIsValidator(final NodeKey nodekey) {
    return this.getValidatorsAtHead().contains(Util.publicKeyToAddress(nodekey.getPublicKey()));
  }
Determines if this node is a validator

@param nodekey our node key
@return true if this node is a validator
consensus/common/src/main/java/org/hyperledger/besu/consensus/common/validator/ValidatorProvider.java