mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 16:27:39 +00:00
Merge pull request #1634
99f58437
Fix invalid + of std::string and int (Timothy D. Prime)
This commit is contained in:
commit
5bb95fc613
2 changed files with 4 additions and 4 deletions
|
@ -204,7 +204,7 @@ namespace cryptonote
|
||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
res.status = "Error retrieving block at height " + height;
|
res.status = "Error retrieving block at height " + std::to_string(height);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
std::list<transaction> txs;
|
std::list<transaction> txs;
|
||||||
|
|
|
@ -5417,9 +5417,9 @@ uint64_t wallet2::get_blockchain_height_by_date(uint16_t year, uint8_t month, ui
|
||||||
throw std::runtime_error(oss.str());
|
throw std::runtime_error(oss.str());
|
||||||
}
|
}
|
||||||
cryptonote::block blk_min, blk_mid, blk_max;
|
cryptonote::block blk_min, blk_mid, blk_max;
|
||||||
if (!parse_and_validate_block_from_blob(res.blocks[0].block, blk_min)) throw std::runtime_error("failed to parse blob at height " + height_min);
|
if (!parse_and_validate_block_from_blob(res.blocks[0].block, blk_min)) throw std::runtime_error("failed to parse blob at height " + std::to_string(height_min));
|
||||||
if (!parse_and_validate_block_from_blob(res.blocks[1].block, blk_mid)) throw std::runtime_error("failed to parse blob at height " + height_mid);
|
if (!parse_and_validate_block_from_blob(res.blocks[1].block, blk_mid)) throw std::runtime_error("failed to parse blob at height " + std::to_string(height_mid));
|
||||||
if (!parse_and_validate_block_from_blob(res.blocks[2].block, blk_max)) throw std::runtime_error("failed to parse blob at height " + height_max);
|
if (!parse_and_validate_block_from_blob(res.blocks[2].block, blk_max)) throw std::runtime_error("failed to parse blob at height " + std::to_string(height_max));
|
||||||
uint64_t timestamp_min = blk_min.timestamp;
|
uint64_t timestamp_min = blk_min.timestamp;
|
||||||
uint64_t timestamp_mid = blk_mid.timestamp;
|
uint64_t timestamp_mid = blk_mid.timestamp;
|
||||||
uint64_t timestamp_max = blk_max.timestamp;
|
uint64_t timestamp_max = blk_max.timestamp;
|
||||||
|
|
Loading…
Reference in a new issue