mirror of
https://github.com/monero-project/monero.git
synced 2024-12-30 14:26:13 -05:00
Print cdifficulty and don't serialize miner tx hash twice
This commit is contained in:
parent
b60cf6a938
commit
fd4846134d
@ -92,6 +92,7 @@ namespace {
|
|||||||
<< "depth: " << boost::lexical_cast<std::string>(header.depth) << std::endl
|
<< "depth: " << boost::lexical_cast<std::string>(header.depth) << std::endl
|
||||||
<< "hash: " << header.hash << std::endl
|
<< "hash: " << header.hash << std::endl
|
||||||
<< "difficulty: " << header.wide_difficulty << std::endl
|
<< "difficulty: " << header.wide_difficulty << std::endl
|
||||||
|
<< "cumulative difficulty: " << header.wide_cumulative_difficulty << std::endl
|
||||||
<< "POW hash: " << header.pow_hash << std::endl
|
<< "POW hash: " << header.pow_hash << std::endl
|
||||||
<< "block size: " << header.block_size << std::endl
|
<< "block size: " << header.block_size << std::endl
|
||||||
<< "block weight: " << header.block_weight << std::endl
|
<< "block weight: " << header.block_weight << std::endl
|
||||||
|
@ -1950,7 +1950,6 @@ namespace cryptonote
|
|||||||
error_resp.message = "Internal error: can't produce valid response.";
|
error_resp.message = "Internal error: can't produce valid response.";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
res.miner_tx_hash = epee::string_tools::pod_to_hex(cryptonote::get_transaction_hash(blk.miner_tx));
|
|
||||||
for (size_t n = 0; n < blk.tx_hashes.size(); ++n)
|
for (size_t n = 0; n < blk.tx_hashes.size(); ++n)
|
||||||
{
|
{
|
||||||
res.tx_hashes.push_back(epee::string_tools::pod_to_hex(blk.tx_hashes[n]));
|
res.tx_hashes.push_back(epee::string_tools::pod_to_hex(blk.tx_hashes[n]));
|
||||||
|
Loading…
Reference in New Issue
Block a user