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

Try to fix flaky IX tests in DIP3 tests #2602

Merged
merged 2 commits into from
Jan 3, 2019

Conversation

codablock
Copy link

@codablock codablock commented Jan 2, 2019

This will hopefully fix flaky tests as seen in https://api.travis-ci.org/v3/job/474288097/log.txt

The reason for these tests to fail is that in some situations sending TXs results in more inputs being selected then actually needed, which then overloads the CPU when doing IX. This happens because SelectCoinsMinConf forces a minimum change of MIN_CHANGE, which in turn forces adding of more inputs then needed, especially when the spent amount is less then MIN_CHANGE.

This is an issue we should eventually fix in the future, independent from this PR. This PR only tries to increase the sent amount so that in most cases large enough inputs are selected so that one or two of them are enough. The PR also gives more funding to individual nodes.

@codablock codablock added this to the 14.0 milestone Jan 2, 2019
node0 tends to have many small UTXOs which result in TXs with many inputs
and high CPU usage.
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

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

utACK

@UdjinM6 UdjinM6 merged commit 96d4f74 into dashpay:develop Jan 3, 2019
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

2 participants