Merge branch 'master' into merge-mining

This commit is contained in:
SChernykh 2024-02-04 00:20:14 +01:00
commit 2660d9dd0f

View file

@ -64,6 +64,13 @@ p2pool::p2pool(int argc, char* argv[])
LOGINFO(1, log::LightCyan() << VERSION); LOGINFO(1, log::LightCyan() << VERSION);
Params* p = new Params(argc, argv); Params* p = new Params(argc, argv);
if (!p->valid()) {
LOGERR(1, "Invalid or missing command line. Try \"p2pool --help\".");
delete p;
throw std::exception();
}
m_params = p; m_params = p;
#ifdef WITH_UPNP #ifdef WITH_UPNP