mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 03:59:33 +00:00
Added static_cast to hshd.current_height
This commit is contained in:
parent
7fea5645e2
commit
de76efe9fe
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ namespace cryptonote
|
|||
/* As I don't know if accessing hshd from core could be a good practice,
|
||||
I prefer pushing target height to the core at the same time it is pushed to the user.
|
||||
Nz. */
|
||||
m_core.set_target_blockchain_height(hshd.current_height);
|
||||
m_core.set_target_blockchain_height(static_cast<int64_t>(hshd.current_height));
|
||||
|
||||
int64_t diff = static_cast<int64_t>(hshd.current_height) - static_cast<int64_t>(m_core.get_current_blockchain_height());
|
||||
LOG_PRINT_CCONTEXT_YELLOW("Sync data returned unknown top block: " << m_core.get_current_blockchain_height() << " -> " << hshd.current_height
|
||||
|
|
Loading…
Reference in a new issue