aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-03-23 16:20:08 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-11 11:07:58 +0000
commit064ab123401814b755c776d8e53f132f6a151657 (patch)
treec08e17486a0cd16e9ff46a2a2158d714aecceaa1 /src/cryptonote_basic/miner.cpp
parentfunctional_tests: add bans tests (diff)
downloadmonero-064ab123401814b755c776d8e53f132f6a151657.tar.xz
functional_tests: add more blockchain related tests
Related to emission, reorgs, getting tx data back, output distribution and histogram
Diffstat (limited to 'src/cryptonote_basic/miner.cpp')
-rw-r--r--src/cryptonote_basic/miner.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index ded6e346f..e6c6bddb6 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -576,7 +576,8 @@ namespace cryptonote
//we lucky!
++m_config.current_extra_message_index;
MGINFO_GREEN("Found block " << get_block_hash(b) << " at height " << height << " for difficulty: " << local_diff);
- if(!m_phandler->handle_block_found(b))
+ cryptonote::block_verification_context bvc;
+ if(!m_phandler->handle_block_found(b, bvc) || !bvc.m_added_to_main_chain)
{
--m_config.current_extra_message_index;
}else