Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No mining work available yet. #467

Open
Craftoncu opened this issue Feb 16, 2021 · 0 comments
Open

No mining work available yet. #467

Craftoncu opened this issue Feb 16, 2021 · 0 comments

Comments

@Craftoncu
Copy link

Geth version 1.9.25-stable
Geth is done with syncing.

I think it is my nginx config.

Curl on localhost:8080 gives me an empty result.

Default Nginx Site
`upstream api {
server 127.0.0.1:8080;
}

server {
listen 80 default_server;
listen [::]:80 default_server;

    root /opt/open-ethereum-pool/www/dist/;

    index index.html;

    server_name _;

    location / {
            try_files $uri $uri/ =404;
    }

    location /api {
            proxy_pass http://127.0.0.1:8080;
    }

}

server {
root /opt/open-ethereum-pool/www/dist/;
index index.html;
server_name pool.backslashlabs.dev; # managed by Certbot

    location / {
            try_files $uri $uri/ =404;
    }

    location /api {
            proxy_pass http://127.0.0.1:8080;
    }


listen [::]:443 ssl ipv6only=on; # managed by Certbot
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/pool.backslashlabs.dev/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/pool.backslashlabs.dev/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
if ($host = pool.backslashlabs.dev) {
return 301 https://$host$request_uri;
} # managed by Certbot

    listen 80 ;
    listen [::]:80 ;
server_name pool.backslashlabs.dev;
return 404; # managed by Certbot

}
`

Frontend JS Conf:
`/* jshint node: true */

module.exports = function(environment) {
var ENV = {
modulePrefix: 'open-ethereum-pool',
environment: environment,
rootURL: '/',
locationType: 'hash',
EmberENV: {
FEATURES: {
// Here you can enable experimental features on an ember canary build
// e.g. 'with-controller': true
}
},

APP: {
  // API host and port
  ApiUrl: '//137.74.130.138/',

  // HTTP mining endpoint
  HttpHost: 'https://pool.backslashlabs.dev',
  HttpPort: 8888,

  // Stratum mining endpoint
  StratumHost: 'pool.backslashlabs.dev',
  StratumPort: 8008,

  // Fee and payout details
  PoolFee: '1%',
  PayoutThreshold: '0.5 Ether',

  // For network hashrate (change for your favourite fork)
  BlockTime: 13.0
}

};

if (environment === 'development') {
/* Override ApiUrl just for development, while you are customizing
frontend markup and css theme on your workstation.
*/
ENV.APP.ApiUrl = 'http://localhost:8080/'
// ENV.APP.LOG_RESOLVER = true;
// ENV.APP.LOG_ACTIVE_GENERATION = true;
// ENV.APP.LOG_TRANSITIONS = true;
// ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
// ENV.APP.LOG_VIEW_LOOKUPS = true;
}

if (environment === 'test') {
// Testem prefers this...
ENV.locationType = 'none';

// keep test console output quieter
ENV.APP.LOG_ACTIVE_GENERATION = false;
ENV.APP.LOG_VIEW_LOOKUPS = false;

ENV.APP.rootElement = '#ember-testing';

}

if (environment === 'production') {

}

return ENV;
};
`

Pool Conf:
`{
"threads": 2,
"coin": "eth",
"name": "main",

    "proxy": {
            "enabled": true,
            "listen": "0.0.0.0:8888",
            "limitHeadersSize": 1024,
            "limitBodySize": 256,
            "behindReverseProxy": false,
            "blockRefreshInterval": "120ms",
            "stateUpdateInterval": "3s",
            "difficulty": 2000000000,
            "hashrateExpiration": "3h",

            "healthCheck": true,
            "maxFails": 100,

            "stratum": {
                    "enabled": true,
                    "listen": "0.0.0.0:8008",
                    "timeout": "120s",
                    "maxConn": 8192
            },

            "policy": {
                    "workers": 8,
                    "resetInterval": "60m",
                    "refreshInterval": "1m",

                    "banning": {
                            "enabled": false,
                            "ipset": "blacklist",
                            "timeout": 1800,
                            "invalidPercent": 30,
                            "checkThreshold": 30,
                            "malformedLimit": 5
                    },
                    "limits": {
                            "enabled": false,
                            "limit": 30,
                            "grace": "5m",
                            "limitJump": 10
                    }
            }
    },

    "api": {
            "enabled": true,
            "purgeOnly": false,
            "purgeInterval": "10m",
            "listen": "127.0.0.1:8080",
            "statsCollectInterval": "5s",
            "hashrateWindow": "30m",
            "hashrateLargeWindow": "3h",
            "luckWindow": [64, 128, 256],
            "payments": 30,
            "blocks": 50
    },

    "upstreamCheckInterval": "5s",
    "upstream": [
            {
                    "name": "main",
                    "url": "http://127.0.0.1:8545",
                    "timeout": "10s"
            },
            {
                    "name": "backup",
                    "url": "http://127.0.0.2:8545",
                    "timeout": "10s"
            }
    ],

    "redis": {
            "endpoint": "127.0.0.1:6379",
            "poolSize": 10,
            "database": 0,
            "password": ""
    },

    "unlocker": {
            "enabled": false,
            "poolFee": 1.0,
            "poolFeeAddress": "",
            "donate": true,
            "depth": 120,
            "immatureDepth": 20,
            "keepTxFees": false,
            "interval": "10m",
            "daemon": "http://127.0.0.1:8545",
            "timeout": "10s"
    },

    "payouts": {
            "enabled": false,
            "requirePeers": 25,
            "interval": "120m",
            "daemon": "http://127.0.0.1:8545",
            "timeout": "10s",
            "address": "0x0",
            "gas": "21000",
            "gasPrice": "50000000000",
            "autoGas": true,
            "threshold": 500000000,
            "bgsave": false
    },

    "newrelicEnabled": false,
    "newrelicName": "MyEtherProxy",
    "newrelicKey": "SECRET_KEY",
    "newrelicVerbose": false

}
`

OS: Ubuntu 20.04.02 LTS
Access Browser: Firefox latest
Nginx Version: 1.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant