aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain_db.h
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-01-09 20:04:47 -0500
committerThomas Winget <tewinget@gmail.com>2015-01-09 20:04:47 -0500
commit030eab7a49ee3846e7591edd81cf56737c850ef3 (patch)
tree53facbb62b157f403cfadbd31832a28b734f04c8 /src/cryptonote_core/blockchain_db.h
parentthrow inline functions need to keep exception type (diff)
parentFix transfers to support mixins (diff)
downloadmonero-030eab7a49ee3846e7591edd81cf56737c850ef3.tar.xz
Merge pull request #20 from warptangent/fix_transfers
Fix transfers Output indexing was being handled improperly. These changes fix that. Wallets (re-)created using this branch will need to be (re-)re-created in order to get correct output indices.
Diffstat (limited to 'src/cryptonote_core/blockchain_db.h')
-rw-r--r--src/cryptonote_core/blockchain_db.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain_db.h b/src/cryptonote_core/blockchain_db.h
index a3c7bc26b..b498320ae 100644
--- a/src/cryptonote_core/blockchain_db.h
+++ b/src/cryptonote_core/blockchain_db.h
@@ -452,6 +452,9 @@ public:
// return a vector of indices corresponding to the global output index for
// each output in the transaction with hash <h>
virtual std::vector<uint64_t> get_tx_output_indices(const crypto::hash& h) const = 0;
+ // return a vector of indices corresponding to the amount output index for
+ // each output in the transaction with hash <h>
+ virtual std::vector<uint64_t> get_tx_amount_output_indices(const crypto::hash& h) const = 0;
// returns true if key image <img> is present in spent key images storage
virtual bool has_key_image(const crypto::key_image& img) const = 0;