We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4580d94 commit 3edc9feCopy full SHA for 3edc9fe
1 file changed
src/impl/ltc/node.cpp
@@ -373,7 +373,15 @@ std::vector<ltc::ShareType> NodeImpl::handle_get_share(std::vector<uint256> hash
373
for (const auto& handle_hash : hashes)
374
{
375
if (!m_chain->contains(handle_hash))
376
+ {
377
+ static int miss_log = 0;
378
+ if (miss_log++ < 5)
379
+ LOG_WARNING << "[handle_get_share] hash NOT in chain: "
380
+ << handle_hash.ToString().substr(0, 16)
381
+ << " chain_size=" << m_chain->size()
382
+ << " tracker_chain_size=" << m_tracker.chain.size();
383
continue;
384
+ }
385
uint64_t n = std::min(parents+1, (uint64_t) m_chain->get_height(handle_hash));
386
for (auto& [hash, data] : m_chain->get_chain(handle_hash, n))
387
0 commit comments