Skip to content

Conversation

@instagibbs
Copy link
Member

I was investigating a curious error for #17290 and realized that this check should have caught that error earlier in the test.

The loop is intended to ensure that only a single input exists the entire time until the change output disappears, a single additional bump occurs, then it leaves the loop.

@fanquake fanquake added the Tests label Oct 30, 2019
Copy link
Contributor

@theStack theStack left a comment

Choose a reason for hiding this comment

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

ACK 1ac553c3ab613dea73462be496803d2ee0489d67

@maflcko
Copy link
Member

maflcko commented Nov 11, 2019

What about renaming both to the same name? e.g. input_list, since it always refers to the input list, regardless of what iteration we are on.

@instagibbs
Copy link
Member Author

What about renaming both to the same name?

IIRC it made it easier for me to think about the test as I wrote it, but if others find that clearer I can do that too

@instagibbs
Copy link
Member Author

In the interest of a quicker merge of this clear test bug, took Marco's suggestion

@maflcko
Copy link
Member

maflcko commented Nov 15, 2019

Sorry, I think the previous solution was also fine. Just forgot about this.

maflcko pushed a commit that referenced this pull request Nov 15, 2019
38516f9 Fix input size assertion in wallet_bumpfee.py (Gregory Sanders)

Pull request description:

  I was investigating a curious error for #17290 and realized that this check should have caught that error earlier in the test.

  The loop is intended to ensure that only a single input exists the entire time until the change output disappears, a single additional bump occurs, then it leaves the loop.

Top commit has no ACKs.

Tree-SHA512: 1d2d6ef535ec2c55f516ee5de11352386ceac6bedaabc6842229a486d9f28d35310ad5f57bfcc1f1e654fc397ecff29ec33256f9b3da897500b7e1635004b63a
@maflcko maflcko merged commit 38516f9 into bitcoin:master Nov 15, 2019
@bitcoin bitcoin deleted a comment from Jack82465 Jul 7, 2020
@bitcoin bitcoin deleted a comment from Jack82465 Jul 7, 2020
@bitcoin bitcoin deleted a comment from Jack82465 Jul 7, 2020
@bitcoin bitcoin deleted a comment from Jack82465 Jul 7, 2020
@bitcoin bitcoin deleted a comment from Jack82465 Jul 7, 2020
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants