mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-09-11 16:18:47 -06:00
Check for proper --local-api
usage
This commit is contained in:
parent
d4a1b14820
commit
8045c40026
@ -111,6 +111,11 @@ p2pool::p2pool(int argc, char* argv[])
|
|||||||
|
|
||||||
m_api = m_params->m_apiPath.empty() ? nullptr : new p2pool_api(m_params->m_apiPath, m_params->m_localStats);
|
m_api = m_params->m_apiPath.empty() ? nullptr : new p2pool_api(m_params->m_apiPath, m_params->m_localStats);
|
||||||
|
|
||||||
|
if (m_params->m_localStats && !m_api) {
|
||||||
|
LOGERR(1, "--local-api and --stratum-api command line parameters can't be used without --data-api");
|
||||||
|
panic();
|
||||||
|
}
|
||||||
|
|
||||||
m_sideChain = new SideChain(this, type, m_params->m_mini ? "mini" : nullptr);
|
m_sideChain = new SideChain(this, type, m_params->m_mini ? "mini" : nullptr);
|
||||||
|
|
||||||
if (m_params->m_p2pAddresses.empty()) {
|
if (m_params->m_p2pAddresses.empty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user