diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-04 23:26:55 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-04 23:26:55 +0100 |
commit | f4f7eeba8067ee70f846a4a7e385070c290bcfd1 (patch) | |
tree | 378313f8c6e611fa7477c2f661822cf0bc314d6e | |
parent | Merge pull request #2159 (diff) | |
download | monero-f4f7eeba8067ee70f846a4a7e385070c290bcfd1.tar.xz |
blockchain: log more info when we reject an orphan
We want to know what happened when a block is wrongly rejected
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 745608b9f..58f60382b 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -1425,7 +1425,9 @@ bool Blockchain::handle_alternative_block(const block& b, const crypto::hash& id { //block orphaned 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; |