diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-11-11 14:51:03 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-03-05 11:57:55 +0000 |
commit | b044d03a51e1dc64bebe2461813e0cfc50f71b0d (patch) | |
tree | c0efdbeae2f8ed76e9ac628556ff119fe195e5dc /src/blockchain_db/testdb.h | |
parent | wallet2: don't calculate prefix hash when we don't need it (diff) | |
download | monero-b044d03a51e1dc64bebe2461813e0cfc50f71b0d.tar.xz |
Avoid repeated (de)serialization when syncing
Diffstat (limited to 'src/blockchain_db/testdb.h')
-rw-r--r-- | src/blockchain_db/testdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/testdb.h b/src/blockchain_db/testdb.h index 35dfbe673..dcaee79b7 100644 --- a/src/blockchain_db/testdb.h +++ b/src/blockchain_db/testdb.h @@ -102,7 +102,7 @@ public: virtual std::vector<std::vector<uint64_t>> get_tx_amount_output_indices(const uint64_t tx_index, size_t n_txes) const { return std::vector<std::vector<uint64_t>>(); } virtual bool has_key_image(const crypto::key_image& img) const { return false; } virtual void remove_block() { } - virtual uint64_t add_transaction_data(const crypto::hash& blk_hash, const cryptonote::transaction& tx, const crypto::hash& tx_hash, const crypto::hash& tx_prunable_hash) {return 0;} + virtual uint64_t add_transaction_data(const crypto::hash& blk_hash, const std::pair<cryptonote::transaction, cryptonote::blobdata>& tx, const crypto::hash& tx_hash, const crypto::hash& tx_prunable_hash) {return 0;} virtual void remove_transaction_data(const crypto::hash& tx_hash, const cryptonote::transaction& tx) {} virtual uint64_t add_output(const crypto::hash& tx_hash, const cryptonote::tx_out& tx_output, const uint64_t& local_index, const uint64_t unlock_time, const rct::key *commitment) {return 0;} virtual void add_tx_amount_output_indices(const uint64_t tx_index, const std::vector<uint64_t>& amount_output_indices) {} |