Allow null algorithm for pools.

This commit is contained in:
XMRig
2019-06-16 03:50:22 +07:00
parent 4d09488728
commit 84ce5f01df
5 changed files with 56 additions and 32 deletions

View File

@@ -30,6 +30,9 @@
#include <vector>
#include "rapidjson/fwd.h"
namespace xmrig {
@@ -91,6 +94,8 @@ public:
inline bool operator==(const Algorithm &other) const { return isEqual(other); }
inline operator Algorithm::Id() const { return m_id; }
rapidjson::Value toJSON() const;
static Family family(Id id);
static Id parse(const char *name);