diff options
author | Howard Chu <hyc@symas.com> | 2016-04-10 17:25:13 +0100 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-04-24 17:46:50 +0100 |
commit | 2b0fa05f0d0d3c2aae90225d786d9ba7fcd6a2ff (patch) | |
tree | c0695e73862c4dfd15bd6132f9862891467c09df /src/blockchain_db/blockchain_db.h | |
parent | mdb_drop optimization (diff) | |
download | monero-2b0fa05f0d0d3c2aae90225d786d9ba7fcd6a2ff.tar.xz |
Another take on migration
Delete old indices and recreate them, rather than updating them
Maybe not quite as slow as before.
Diffstat (limited to 'src/blockchain_db/blockchain_db.h')
-rw-r--r-- | src/blockchain_db/blockchain_db.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/blockchain_db/blockchain_db.h b/src/blockchain_db/blockchain_db.h index 7edef51ea..1445dd13c 100644 --- a/src/blockchain_db/blockchain_db.h +++ b/src/blockchain_db/blockchain_db.h @@ -462,18 +462,6 @@ private: */ void pop_block(); - /** - * @brief helper function for add_transactions, to add each individual transaction - * - * This function is called by add_transactions() for each transaction to be - * added. - * - * @param blk_hash hash of the block which has the transaction - * @param tx the transaction to add - * @param tx_hash_ptr the hash of the transaction, if already calculated - */ - void add_transaction(const crypto::hash& blk_hash, const transaction& tx, const crypto::hash* tx_hash_ptr = NULL); - // helper function to remove transaction from blockchain /** * @brief helper function to remove transaction from the blockchain @@ -492,6 +480,18 @@ private: protected: + /** + * @brief helper function for add_transactions, to add each individual transaction + * + * This function is called by add_transactions() for each transaction to be + * added. + * + * @param blk_hash hash of the block which has the transaction + * @param tx the transaction to add + * @param tx_hash_ptr the hash of the transaction, if already calculated + */ + void add_transaction(const crypto::hash& blk_hash, const transaction& tx, const crypto::hash* tx_hash_ptr = NULL); + mutable uint64_t time_tx_exists = 0; //!< a performance metric uint64_t time_commit1 = 0; //!< a performance metric bool m_auto_remove_logs = true; //!< whether or not to automatically remove old logs |