diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-05 00:12:29 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-12-05 00:13:28 +0000 |
| commit | 9e64a71e7d1fd70cdf94a3b78782ad06828362b3 (patch) | |
| tree | b622cf31d1e6d0c1cec24280b354b956dac89aec /src/cryptonote_core/blockchain.h | |
| parent | e282e9fa407b9a6dd44a72354142fcaaeb8c97b8 (diff) | |
| download | monzero-core-9e64a71e7d1fd70cdf94a3b78782ad06828362b3.tar.gz monzero-core-9e64a71e7d1fd70cdf94a3b78782ad06828362b3.tar.xz monzero-core-9e64a71e7d1fd70cdf94a3b78782ad06828362b3.zip | |
blockchain: call deinit in dtor
This ensures the io service that runs in another thread cannot
access data after it's deleted
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 dfe833fb4..835e5addc 100644 --- a/src/cryptonote_core/blockchain.h +++ b/src/cryptonote_core/blockchain.h @@ -121,6 +121,11 @@ namespace cryptonote Blockchain(tx_memory_pool& tx_pool); /** + * @brief Blockchain destructor + */ + ~Blockchain(); + + /** * @brief Initialize the Blockchain state * * @param db a pointer to the backing store to use for the blockchain |
