Skip to content

test: Flatten miniwallet array and remove random fee in longpoll - #26996

Merged
fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2301-test-log-😀
Mar 8, 2023

Hidden character warning

The head ref may contain hidden characters: "2301-test-log-\ud83d\ude00"
Merged

fanquake merged 1 commit into
bitcoin:masterfrom
maflcko:2301-test-log-😀

Conversation

@maflcko

@maflcko maflcko commented Jan 30, 2023 •

Copy link
Copy Markdown
Member
  • Using a single MiniWallet is enough.
  • A random fee isn't needed either.

@DrahtBot

DrahtBot commented Jan 30, 2023 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK theStack

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

@DrahtBot DrahtBot changed the title test: Log when LongpollThread is ending test: Log when LongpollThread is ending Jan 30, 2023
@DrahtBot DrahtBot added the Tests label Jan 30, 2023

@kouloumos kouloumos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Two questions:

  • Is there an example where logging the end of a thread in such a way could offer an advantage during debugging?
  • Is this a good opportunity to also replace bare asserts with assertion helpers based on #23119? The PRs that are doing that in batches seems to be not moving forward, so I was wondering if opportunistically changing them could be another way.

Based on my questions above and some comments that I left inline, I did some changes to see in practice what I was thinking. You can find them here (diff).

@fanquake
fanquake requested a review from theStack March 7, 2023 15:02

@theStack theStack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK fa6a2be

@maflcko

maflcko commented Mar 7, 2023

Copy link
Copy Markdown
Member Author

Sorry, this slipped the inbox. I'll reply to the feedback

@maflcko

maflcko commented Mar 7, 2023

Copy link
Copy Markdown
Member Author

Is there an example where logging the end of a thread in such a way could offer an advantage during debugging?

Good point. It probably doesn't. It should already be clear from the assertion being hit (or not being hit) whether the thread exited or not.

@maflcko maflcko changed the title test: Log when LongpollThread is ending test: Flatten miniwallet array and remove random fee in longpoll Mar 7, 2023
@DrahtBot DrahtBot changed the title test: Flatten miniwallet array and remove random fee in longpoll test: Flatten miniwallet array and remove random fee in longpoll Mar 7, 2023
@fanquake
fanquake requested review from kouloumos and theStack March 7, 2023 19:28

@theStack theStack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

re-ACK fa0abcd

@fanquake
fanquake merged commit 710fd57 into bitcoin:master Mar 8, 2023
@maflcko
maflcko deleted the 2301-test-log-😀 branch March 10, 2023 13:43
@bitcoin bitcoin locked and limited conversation to collaborators Mar 9, 2024
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.

5 participants