Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow fractional outputs to be ignored /monero#4071 #41

Merged
merged 1 commit into from Jul 7, 2018

Conversation

stoffu
Copy link

@stoffu stoffu commented Jun 28, 2018

No description provided.

@@ -7454,6 +7461,12 @@ std::vector<wallet2::pending_tx> wallet2::create_transactions_2(std::vector<cryp
for (size_t i = 0; i < m_transfers.size(); ++i)
{
const transfer_details& td = m_transfers[i];
const uint64_t fractional_threshold = fee_multiplier * fee_per_kb/1024 * estimate_tx_size(use_rct, 1, fake_outs_count, -1, 0, bulletproof) / 10;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That formula seems wrong. It should probably use estimate_tx_size(outs)-estimate_tx_size(outs-1) or somhtng.
What's the 10 ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, thanks.

The 10 is an arbitrary safety margin to place the threshold at 10% of the estimated size in case the estimate is an overestimation. I think it can be dropped. What do you think?

@stoffu stoffu force-pushed the aeon-ignore-fractional-outputs branch from 11a72a4 to 90a9bcd Compare July 3, 2018 03:29
@stoffu stoffu force-pushed the aeon-ignore-fractional-outputs branch from 90a9bcd to be297b5 Compare July 3, 2018 09:05
@aeonix aeonix merged commit 1f5d06e into aeonix:master Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants