diff options
| author | tobtoht <tob@featherwallet.org> | 2025-12-29 22:24:38 +0000 |
|---|---|---|
| committer | tobtoht <tob@featherwallet.org> | 2025-12-29 22:24:38 +0000 |
| commit | 9dff86103e72e1d03fe62c3c4ee5be382c19e672 (patch) | |
| tree | fba179b09b4dd507bf185f553d2feab2106b03e5 /src/cryptonote_core/blockchain.cpp | |
| parent | 4862ffd5dc9c37cd81dd9a2c088852186d2f972e (diff) | |
| parent | d8d3cf97300480b9d3942c667978dd4860b76feb (diff) | |
| download | monzero-core-9dff86103e72e1d03fe62c3c4ee5be382c19e672.tar.gz monzero-core-9dff86103e72e1d03fe62c3c4ee5be382c19e672.tar.xz monzero-core-9dff86103e72e1d03fe62c3c4ee5be382c19e672.zip | |
Merge pull request #10257
d8d3cf9 p2p: fix race causing dropped connections during sync (j-berman)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
| -rw-r--r-- | src/cryptonote_core/blockchain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index a6c2e3faf..3a34089f5 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -728,13 +728,13 @@ crypto::hash Blockchain::get_tail_id() const * powers of 2 less recent from there, so 13, 17, 25, etc... * */ -bool Blockchain::get_short_chain_history(std::list<crypto::hash>& ids) const +bool Blockchain::get_short_chain_history(std::list<crypto::hash>& ids, uint64_t& current_height) const { LOG_PRINT_L3("Blockchain::" << __func__); CRITICAL_REGION_LOCAL(m_blockchain_lock); uint64_t i = 0; uint64_t current_multiplier = 1; - uint64_t sz = m_db->height(); + uint64_t sz = current_height = m_db->height(); if(!sz) return true; |
