diff options
author | warptangent <warptangent@tutanota.com> | 2016-03-04 11:37:41 -0800 |
---|---|---|
committer | Howard Chu <hyc@symas.com> | 2016-04-05 20:54:06 +0100 |
commit | a2f518aa014163e63e39ce5e83a4f0d4d5be5c3f (patch) | |
tree | beb3efd371fed289047a1a8804450a61b3b9b99b /src/blockchain_db/blockchain_db.cpp | |
parent | Schema update: tx_indices - improve further with less indirection (diff) | |
download | monero-a2f518aa014163e63e39ce5e83a4f0d4d5be5c3f.tar.xz |
Schema update: tx_indices - yet less indirection
Diffstat (limited to 'src/blockchain_db/blockchain_db.cpp')
-rw-r--r-- | src/blockchain_db/blockchain_db.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_db/blockchain_db.cpp b/src/blockchain_db/blockchain_db.cpp index b1b233b58..8cde4f138 100644 --- a/src/blockchain_db/blockchain_db.cpp +++ b/src/blockchain_db/blockchain_db.cpp @@ -82,7 +82,7 @@ void BlockchainDB::add_transaction(const crypto::hash& blk_hash, const transacti } } - add_transaction_data(blk_hash, tx, tx_hash); + uint64_t tx_index = add_transaction_data(blk_hash, tx, tx_hash); std::vector<uint64_t> amount_output_indices; std::vector<uint64_t> global_output_indices; @@ -96,7 +96,7 @@ void BlockchainDB::add_transaction(const crypto::hash& blk_hash, const transacti amount_output_indices.push_back(amount_output_index); global_output_indices.push_back(global_output_index); } - add_amount_and_global_output_indices(tx_hash, amount_output_indices, global_output_indices); + add_amount_and_global_output_indices(tx_index, amount_output_indices, global_output_indices); } uint64_t BlockchainDB::add_block( const block& blk |