aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain_db.h
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-01-11 18:04:04 -0800
committerwarptangent <warptangent@inbox.com>2015-01-11 21:22:09 -0800
commit4d0a94b20cd6e3b03657dc4ca49bc248a1e7f230 (patch)
tree0571cb88d36cfd718f31ed65b6c7714ee31acba3 /src/cryptonote_core/blockchain_db.h
parentUse block index when obtaining block's difficulty for log statement (diff)
downloadmonero-4d0a94b20cd6e3b03657dc4ca49bc248a1e7f230.tar.xz
Complete implementation of transaction removal
Complete method BlockchainLMDB::remove_output() - use output index as the key for: m_output_indices, m_output_txs, m_output_keys - call new method BlockchainLMDB::remove_amount_output_index() Add method to remove amount output index. - BlockchainLMDB::remove_amount_output_index() - for m_output_amounts This also fixes the segfault when blockchain reorganization is attempted.
Diffstat (limited to 'src/cryptonote_core/blockchain_db.h')
-rw-r--r--src/cryptonote_core/blockchain_db.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain_db.h b/src/cryptonote_core/blockchain_db.h
index b498320ae..db56c7c07 100644
--- a/src/cryptonote_core/blockchain_db.h
+++ b/src/cryptonote_core/blockchain_db.h
@@ -274,7 +274,7 @@ private:
virtual void add_transaction_data(const crypto::hash& blk_hash, const transaction& tx) = 0;
// tells the subclass to remove data about a transaction
- virtual void remove_transaction_data(const crypto::hash& tx_hash) = 0;
+ virtual void remove_transaction_data(const crypto::hash& tx_hash, const transaction& tx) = 0;
// tells the subclass to store an output
virtual void add_output(const crypto::hash& tx_hash, const tx_out& tx_output, const uint64_t& local_index) = 0;