diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-04 12:27:45 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-12-04 12:27:45 +0000 |
commit | 3f7d6fb57d1bfb5ee806d3facc1261efe3ad14a0 (patch) | |
tree | aaba7673e6e097e75e9f2ea7ae04e98cc8126bd2 /src/cryptonote_core/blockchain.h | |
parent | Merge pull request #1372 (diff) | |
download | monero-3f7d6fb57d1bfb5ee806d3facc1261efe3ad14a0.tar.xz |
Fix delayed exit when syncing
Diffstat (limited to 'src/cryptonote_core/blockchain.h')
-rw-r--r-- | src/cryptonote_core/blockchain.h | 5 |
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 * |