previous hash added to GBT

This commit is contained in:
Riccardo Spagni
2015-01-06 18:37:10 +02:00
parent 54fbf2afb3
commit 7de1a2d57a
2 changed files with 3 additions and 0 deletions

View File

@@ -475,6 +475,7 @@ namespace cryptonote
LOG_ERROR("Failed to calculate offset for ");
return false;
}
res.prev_hash = string_tools::pod_to_hex(b.prev_id);
res.blocktemplate_blob = string_tools::buff_to_hex_nodelimer(block_blob);
res.status = CORE_RPC_STATUS_OK;
return true;