diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-07-02 17:37:39 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:29:11 +0100 |
commit | 37c895e5e3d181cb5f72946c0cef951dc9ae4054 (patch) | |
tree | ebcb0085bba0a9cd3a12f488bcea87f04f640552 /src/wallet/wallet2.h | |
parent | wallet: make sweep_all work with rct txes too (diff) | |
download | monero-37c895e5e3d181cb5f72946c0cef951dc9ae4054.tar.xz |
wallet: rct specific output selection
Before the normal selection, we attempt to find either one or two
suitable outputs to use as inputs to the rct tx. The intent is that
most rct txes will have one or two inputs, and we want all to look
the same if possible.
When two outputs are needed, we try to find a pair which are not
related (ie, by being from the same or similar block height).
Diffstat (limited to 'src/wallet/wallet2.h')
-rw-r--r-- | src/wallet/wallet2.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 80e8f7f49..ca9d9fb70 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -450,6 +450,8 @@ namespace tools uint64_t get_upper_tranaction_size_limit(); std::vector<uint64_t> get_unspent_amounts_vector(); uint64_t sanitize_fee_multiplier(uint64_t fee_multiplier) const; + float get_output_relatedness(const transfer_details &td0, const transfer_details &td1) const; + std::vector<size_t> pick_prefered_rct_inputs(uint64_t needed_money) const; cryptonote::account_base m_account; std::string m_daemon_address; |