aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-23 11:46:57 +0200
committerRiccardo Spagni <ric@spagni.net>2017-03-23 11:46:57 +0200
commita73a886cb16c42a57d10c93e50eb4f84d965c124 (patch)
tree0df8bbd20301d53613b07493940417c70ccf7c4e /src/cryptonote_basic/miner.cpp
parent7432f13898766085117f57557c94035dfdcb65c6 (diff)
parent91d410902399befd81589fd0153e5b7994bcdaa2 (diff)
downloadmonzero-core-a73a886cb16c42a57d10c93e50eb4f84d965c124.tar.gz
monzero-core-a73a886cb16c42a57d10c93e50eb4f84d965c124.tar.xz
monzero-core-a73a886cb16c42a57d10c93e50eb4f84d965c124.zip
Merge pull request #1911
91d41090 tx_pool: ensure txes loaded from poolstate.bin have their txid cached (moneromooo-monero) aaeb164c tx_pool: remove transactions if they're in the blockchain (moneromooo-monero) 558cfc31 core, wallet: faster tx pool scanning (moneromooo-monero) f065234b core: cache tx and block hashes in the respective classes (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic/miner.cpp')
-rw-r--r--src/cryptonote_basic/miner.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index 1725b7541..5a2a0d009 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -355,9 +355,11 @@ namespace cryptonote
if(check_hash(h, diffic))
{
+ bl.hash_valid = false;
return true;
}
}
+ bl.hash_valid = false;
return false;
}
//-----------------------------------------------------------------------------------------------------