mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
blockchain: log more info when we reject an orphan
We want to know what happened when a block is wrongly rejected
This commit is contained in:
parent
ab594cfee9
commit
f4f7eeba80
1 changed files with 3 additions and 1 deletions
|
@ -1425,7 +1425,9 @@ bool Blockchain::handle_alternative_block(const block& b, const crypto::hash& id
|
||||||
{
|
{
|
||||||
//block orphaned
|
//block orphaned
|
||||||
bvc.m_marked_as_orphaned = true;
|
bvc.m_marked_as_orphaned = true;
|
||||||
MERROR_VER("Block recognized as orphaned and rejected, id = " << id);
|
MERROR_VER("Block recognized as orphaned and rejected, id = " << id << ", height " << block_height
|
||||||
|
<< ", parent in alt " << (it_prev != m_alternative_chains.end()) << ", parent in main " << parent_in_main
|
||||||
|
<< " (parent " << b.prev_id << ", current top " << get_tail_id() << ", chain height " << get_current_blockchain_height() << ")");
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue