From b9389e582eb4e1806ce25a14fa492259c3d40dfc Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 1 Oct 2017 11:24:33 +0100 Subject: db_lmdb: save pruned and prunable tx data separately This bumps DB version to 2, migration code will run for v1 DBs --- src/blockchain_db/berkeleydb/db_bdb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/blockchain_db/berkeleydb/db_bdb.h') diff --git a/src/blockchain_db/berkeleydb/db_bdb.h b/src/blockchain_db/berkeleydb/db_bdb.h index 238a90686..cecbba28f 100644 --- a/src/blockchain_db/berkeleydb/db_bdb.h +++ b/src/blockchain_db/berkeleydb/db_bdb.h @@ -360,7 +360,7 @@ private: virtual void remove_block(); - virtual void add_transaction_data(const crypto::hash& blk_hash, const transaction& tx, const crypto::hash& tx_hash); + virtual void add_transaction_data(const crypto::hash& blk_hash, const transaction& tx, const crypto::hash& tx_hash, const crypto::hash& tx_prunable_hash); virtual void remove_transaction_data(const crypto::hash& tx_hash, const transaction& tx); @@ -381,7 +381,7 @@ private: virtual bool for_all_key_images(std::function) const; virtual bool for_all_blocks(std::function) const; - virtual bool for_all_transactions(std::function) const; + virtual bool for_all_transactions(std::function, bool pruned) const; virtual bool for_all_outputs(std::function f) const; // Hard fork related storage -- cgit v1.2.3