Refactored ASM code

- Removed duplicate code
- Autogenerated ASM files based on templates
- Cleanup in naming
This commit is contained in:
Ben Gräf 2019-01-22 20:29:13 +01:00
parent 6574a8e844
commit 2ec65c7a20
63 changed files with 712 additions and 6907 deletions

View file

@ -52,6 +52,7 @@ int64_t Client::m_sequence = 1;
Client::Client(int id, const char *agent, IClientListener *listener) :
m_quiet(false),
m_nicehash(false),
m_donate(false),
m_agent(agent),
m_listener(listener),
m_id(id),
@ -231,7 +232,7 @@ bool Client::parseJob(const rapidjson::Value &params, int *code)
PowVariant powVariant = Options::i()->powVariant();
if (!Options::i()->forcePowVariant()) {
if (!Options::i()->forcePowVariant() || m_donate) {
if (params.HasMember("algo")) {
std::string algo = params["algo"].GetString();