Skip to content

Commit

Permalink
Merge pull request btccom#201 from btccom/deveth-dcr-subscribe
Browse files Browse the repository at this point in the history
Fix DCR mining.subscribe response
  • Loading branch information
de1acr0ix authored Dec 10, 2018
2 parents 28ea22c + 5de6c7c commit c5b6e51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decred/StratumSessionDecred.cc
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ void StratumSessionDecred::handleRequest_Subscribe(const string &idStr,
// the value on both places.
// result[2] = ExtraNonce2_size, the number of bytes that the miner users for its ExtraNonce2 counter
auto extraNonce1Str = protocol_.getExtraNonce1String(extraNonce1_);
const string s = Strings::Format("{\"id\":%s,\"result\":[[[\"mining.set_difficulty\",\"1\"]"
const string s = Strings::Format("{\"id\":%s,\"result\":[[[\"mining.set_difficulty\",\"%08x\"]"
",[\"mining.notify\",\"%08x\"]],\"%s\",%d],\"error\":null}\n",
idStr.c_str(), extraNonce1_, extraNonce1Str.c_str(), StratumMiner::kExtraNonce2Size_);
idStr.c_str(), extraNonce1_, extraNonce1_, extraNonce1Str.c_str(), StratumMiner::kExtraNonce2Size_);
sendData(s);
}

Expand Down

0 comments on commit c5b6e51

Please sign in to comment.