aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-04 12:27:45 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-12-04 12:27:45 +0000
commit3f7d6fb57d1bfb5ee806d3facc1261efe3ad14a0 (patch)
treeaaba7673e6e097e75e9f2ea7ae04e98cc8126bd2 /src/cryptonote_core/blockchain.h
parentMerge pull request #1372 (diff)
downloadmonero-3f7d6fb57d1bfb5ee806d3facc1261efe3ad14a0.tar.xz
Fix delayed exit when syncing
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r--src/cryptonote_core/blockchain.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.h b/src/cryptonote_core/blockchain.h
index f9ae9d8aa..9afc22657 100644
--- a/src/cryptonote_core/blockchain.h
+++ b/src/cryptonote_core/blockchain.h
@@ -843,6 +843,9 @@ namespace cryptonote
*/
void block_longhash_worker(const uint64_t height, const std::vector<block> &blocks,
std::unordered_map<crypto::hash, crypto::hash> &map) const;
+
+ void cancel();
+
private:
// TODO: evaluate whether or not each of these typedefs are left over from blockchain_storage
@@ -912,6 +915,8 @@ namespace cryptonote
bool m_testnet;
+ std::atomic<bool> m_cancel;
+
/**
* @brief collects the keys for all outputs being "spent" as an input
*