mirror of
https://github.com/SChernykh/p2pool.git
synced 2024-11-16 15:57:39 +00:00
Fixed wrong nonce values in submit_block error log
This commit is contained in:
parent
d8d84f08c4
commit
f05f7c4268
1 changed files with 4 additions and 4 deletions
|
@ -370,6 +370,10 @@ void p2pool::submit_block() const
|
|||
|
||||
request = "{\"jsonrpc\":\"2.0\",\"id\":\"0\",\"method\":\"submit_block\",\"params\":[\"";
|
||||
|
||||
const uint32_t template_id = submit_data.template_id;
|
||||
const uint32_t nonce = submit_data.nonce;
|
||||
const uint32_t extra_nonce = submit_data.extra_nonce;
|
||||
|
||||
for (size_t i = 0; i < submit_data.blob.size(); ++i) {
|
||||
char buf[16];
|
||||
|
||||
|
@ -389,10 +393,6 @@ void p2pool::submit_block() const
|
|||
}
|
||||
request.append("\"]}");
|
||||
|
||||
const uint32_t template_id = submit_data.template_id;
|
||||
const uint32_t nonce = submit_data.nonce;
|
||||
const uint32_t extra_nonce = submit_data.extra_nonce;
|
||||
|
||||
JSONRPCRequest::call(m_params->m_host.c_str(), m_params->m_rpcPort, request.c_str(),
|
||||
[height, diff, template_id, nonce, extra_nonce, is_external](const char* data, size_t size)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue